{"id":26244680,"url":"https://github.com/deepfates/repflix-studios","last_synced_at":"2025-04-23T16:40:24.932Z","repository":{"id":275012970,"uuid":"924420966","full_name":"deepfates/repflix-studios","owner":"deepfates","description":"Scripts for generating large amounts of videos with fine-tuned models on Replicate","archived":false,"fork":false,"pushed_at":"2025-01-30T17:05:40.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T01:35:50.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepfates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-30T00:55:01.000Z","updated_at":"2025-03-19T15:59:17.000Z","dependencies_parsed_at":"2025-02-04T04:15:35.309Z","dependency_job_id":null,"html_url":"https://github.com/deepfates/repflix-studios","commit_stats":null,"previous_names":["deepfates/repflix-studios"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepfates%2Frepflix-studios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepfates%2Frepflix-studios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepfates%2Frepflix-studios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepfates%2Frepflix-studios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepfates","download_url":"https://codeload.github.com/deepfates/repflix-studios/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250471803,"owners_count":21436025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-13T11:31:27.144Z","updated_at":"2025-04-23T16:40:24.915Z","avatar_url":"https://github.com/deepfates.png","language":"Python","readme":"# Repflix Studios\n\nGenerate and download videos with the same prompts across a bunch of different fine-tuned HunyuanVideo models on Replicate. \n\nThis toolkit lets you:\n- Generate videos with different style models\n- Sweep across multiple parameters to explore variations\n- Download results before they expire\n- Create pre-generated parameter grids for web exploration\n\n## Setup\n\n1. Install `uv`:\n```bash\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n```\n\n2. Set your Replicate API token:\n```bash\nexport REPLICATE_API_TOKEN=your_token_here\n```\n\nThat's it! Each script has its dependencies defined inline, so `uv` will handle everything else automatically.\n\n## Usage\n\n### 1. Generate Individual Videos\n\nFor quick tests and single videos, use `generate_video.py`:\n\n```bash\nuv run generate_video.py \"A TOK style video of a cat playing with yarn\"\n```\n\nSweep across parameters to explore variations:\n```bash\n# Sweep lora_strength and guidance_scale\nuv run generate_video.py \"A TOK style video of a cat\" \\\n  --param1 lora_strength --param2 guidance_scale\n\n# Custom parameter ranges\nuv run generate_video.py \"A TOK style video of a cat\" \\\n  --param1 steps --param1-start 25 --param1-end 50\n```\n\n### 2. Generate Parameter Grid\n\nTo create a complete exploration space across models and parameters, use `generate_grid.py`. This script:\n- Takes a set of prompts\n- Generates videos for all combinations of:\n  - 9 different style models\n  - 3 key parameters (lora_strength, guidance_scale, steps)\n  - 3 values per parameter\n- Records prediction IDs and metadata for later retrieval\n- Perfect for creating pre-generated content for web exploration\n\n```bash\nuv run generate_grid.py\n```\n\n### 3. Download Grid Results\n\nAfter generating the parameter grid, use `download_grid.py` to:\n- Download all generated videos before they expire\n- Organize them in a CDN-friendly directory structure\n- Create a complete exploration space for web interfaces\n\n```bash\nuv run download_grid.py\n```\n\nUse `--dry-run` to preview download paths:\n```bash\nuv run download_grid.py --dry-run\n```\n\nVideos are saved to `public/videos/` organized by model and parameters, ready for web serving.\n\n### Key Parameters\n\nThese parameters have the most impact on video style and quality:\n- `lora_strength`: Controls style adaptation (0.5-1.5 recommended)\n- `guidance_scale`: Controls prompt adherence (5-8 recommended)\n- `steps`: Number of denoising steps (25-50 recommended)\n\nLess critical parameters:\n- `num_frames`: Frames to generate (16-64 recommended)\n- `frame_rate`: Frames per second (8-24 recommended)\n\n## Notes\n\n- The scripts use \"TOK\" in prompts as a placeholder - it's automatically replaced with the appropriate trigger word for each model\n- Generated videos are temporarily stored on Replicate and should be downloaded promptly\n- The grid generation workflow creates a complete exploration space for web interfaces\n- The download script creates a CDN-friendly directory structure based on model and parameters\n\n## Models\n\nThe script includes several Hunyuan models with different styles:\n- Dune\n- Pixar\n- Arcane\n- La La Land\n- Twin Peaks\n- Pulp Fiction\n- Cowboy Bebop\n- The Grand Budapest Hotel\n- Spider-Man: Into the Spider-Verse\n\nMore models are available but commented out in the code.\n\n## Requirements\n\n- Python 3.11 or higher (installed automatically by `uv` if needed)\n- Replicate API token\n\nEach script has its own dependencies defined at the top of the file. The main dependencies are:\n- replicate\n- tqdm\n- numpy\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepfates%2Frepflix-studios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepfates%2Frepflix-studios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepfates%2Frepflix-studios/lists"}