📝 Nočna Session Setup - Asset Generation Infrastructure

- Created overnight generation system
- Added master character references (Gronk, Kai)
- Implemented auto-commit for all generated assets
- Created comprehensive documentation and changelogs
- Setup FULL generator (850+ assets without NPCs)
- Added progress tracking and status check scripts

Ready for overnight mass generation 🌙
This commit is contained in:
2025-12-29 03:43:44 +01:00
parent 54d3aa3bbc
commit 117624befc
13 changed files with 1372 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import json
import time
import uuid
import requests
import subprocess
from pathlib import Path
from datetime import datetime
@@ -116,6 +117,40 @@ def log(msg):
sys.stdout.flush()
def git_commit(file_path, category, name):
"""Auto-commit generated asset to Git"""
try:
repo_dir = Path("/Users/davidkotnik/repos/novafarma")
rel_path = file_path.relative_to(repo_dir)
# Git add
subprocess.run(
["git", "add", str(rel_path)],
cwd=repo_dir,
check=True,
capture_output=True
)
# Git commit
commit_msg = f"🎨 Auto-generated asset: {category}/{name}"
result = subprocess.run(
["git", "commit", "-m", commit_msg],
cwd=repo_dir,
capture_output=True,
text=True
)
if result.returncode == 0:
log(f" 📝 Git committed")
return True
else:
# Možno da je že committed ali ni sprememb
return False
except Exception as e:
log(f" ⚠️ Git: {str(e)[:50]}")
return False
def create_workflow(prompt_text, output_name, size=512):
"""Create ComfyUI workflow"""
seed = int(time.time() * 1000) % 2147483647
@@ -271,6 +306,8 @@ def main():
if pid and wait_completion(pid) and download_and_process(pid, path):
log(f" ✅ DONE (transparent)")
# Auto-commit to Git
git_commit(path, cat, name)
success += 1
else:
log(f" ❌ FAILED")