Skip to content

Commit 0de5027

Browse files
charliewwdevclaude
andcommitted
V4: add trailer V4 storyboard, update V3 script, add CLAUDE.md project guidelines
- fanren_trailer_v4.json: 18-shot storyboard with camera presets, shot chaining, beat sync - produce_trailer_v3.py: improved phase handling and error recovery - fanren_trailer_v3.json: minor config tweaks - CLAUDE.md: project architecture, coding conventions, workflow rules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5d03cd4 commit 0de5027

File tree

4 files changed

+608
-35
lines changed

4 files changed

+608
-35
lines changed

CLAUDE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# AnimateDiff V4 — Development Guidelines
2+
3+
## Workflow Rules
4+
5+
### Commit Early, Commit Often
6+
- Every completed module/feature MUST be committed before moving to the next
7+
- Never accumulate more than ~3 files of uncommitted changes
8+
- Use descriptive commit messages in English
9+
10+
### Task Tracking
11+
- For multi-step work, always create a TaskList at the start
12+
- Update task status as work progresses (pending → in_progress → completed)
13+
- Before `/clear` or when context gets long, run `/compact` first
14+
15+
### Context Preservation
16+
- When starting a large task, write the plan to `memory/WIP.md`
17+
- Update `WIP.md` after each milestone (commit)
18+
- Clear `WIP.md` when the task is fully complete
19+
- Keep `MEMORY.md` for stable, verified knowledge only
20+
21+
### Code Conventions
22+
- Python 3.10+ (f-strings, type hints, walrus operator OK)
23+
- All new modules: include module docstring + `__all__` exports
24+
- Backend modules: subclass `BackendBase` from `core/base_pipeline.py`
25+
- PostProcess modules: follow existing pattern in `postprocess/`
26+
- Config: JSON storyboard format (see `examples/`)
27+
28+
## Architecture
29+
30+
```
31+
animatediff/
32+
├── backends/ # Video generation backends (wan, hunyuan, cogvideo, ltx, etc.)
33+
├── core/ # Pipeline infrastructure (base_pipeline, story_engine, vram, etc.)
34+
├── postprocess/ # Post-processing (upscale, interpolation, audio, deflicker, etc.)
35+
└── data/ # Static data (camera presets, LUTs, etc.)
36+
scripts/ # CLI entry points (animate.py, story.py, produce_trailer_*.py)
37+
examples/ # Storyboard JSON configs
38+
```
39+
40+
## Key Constraints
41+
- MPS (Apple Silicon): float32 only, no CPU offload, no FP8/MoE models
42+
- RTX 4090 (24GB): Wan 2.2 5B at 832x480 with model_cpu_offload
43+
- Always test imports before committing new modules

examples/fanren_trailer_v3.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,28 @@
3838
"characters": {
3939
"韩立_early": {
4040
"description": "young thin boy age 14, simple brown cloth, messy black hair, poor but determined dark eyes, thin face",
41-
"image_path": null,
41+
"image_path": "output/fanren-trailer-v3/portraits/韩立_early.jpg",
4242
"portrait_prompt": "cinematic medium shot of a young thin Chinese boy age 14, wearing simple ragged brown cloth, messy black hair, poor but determined dark eyes, thin face, standing in a mountain village, golden hour lighting, shallow depth of field, film grain, xianxia anime style, high detail, landscape 16:9 composition",
4343
"lora_path": null,
4444
"lora_scale": 1.0
4545
},
4646
"韩立_late": {
4747
"description": "young male cultivator age 16, grey disciple robes, hair tied in topknot, determined gaze, faint golden aura",
48-
"image_path": null,
48+
"image_path": "output/fanren-trailer-v3/portraits/韩立_late.jpg",
4949
"portrait_prompt": "cinematic medium shot of a young Chinese male cultivator age 16, grey disciple robes with dark trim, hair tied in topknot, determined gaze, faint golden spiritual aura, mountain backdrop, volumetric fog, rim lighting, xianxia anime style, high detail, landscape 16:9 composition",
5050
"lora_path": null,
5151
"lora_scale": 1.0
5252
},
5353
"墨大夫": {
5454
"description": "sinister old man with long white beard, dark green robes, sharp cunning eyes, hunched posture, alchemist",
55-
"image_path": null,
55+
"image_path": "output/fanren-trailer-v3/portraits/墨大夫.jpg",
5656
"portrait_prompt": "cinematic medium shot of a sinister old Chinese man alchemist, long white beard, dark green robes, sharp cunning eyes, hunched posture, dim candlelit alchemy room background, chiaroscuro lighting, xianxia anime style, high detail, landscape 16:9 composition",
5757
"lora_path": null,
5858
"lora_scale": 1.0
5959
},
6060
"厉飞雨": {
61-
"description": "handsome young man in grey disciple robes, short black hair, warm smile, loyal friend, carrying a sword",
62-
"image_path": null,
61+
"description": "handsome young man in dark black robes, black hair with crown topknot, strong masculine face, thick eyebrows, loyal friend",
62+
"image_path": "output/fanren-trailer-v3/portraits/厉飞雨.jpg",
6363
"portrait_prompt": "cinematic medium shot of a handsome young Chinese man in grey disciple robes, short black hair, warm friendly smile, sword strapped to back, cherry blossom trees background, soft morning light, xianxia anime style, high detail, landscape 16:9 composition",
6464
"lora_path": null,
6565
"lora_scale": 1.0

0 commit comments

Comments
 (0)