cogvideox controlnets
Collection
Collection of controlnet extentions for cogvideox models. โข 4 items โข Updated
Run TheDenk/cogvideox-2b-controlnet-hed-v1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/TheDenk/cogvideox-2b-controlnet-hed-v1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/TheDenk/cogvideox-2b-controlnet-hed-v1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use TheDenk/cogvideox-2b-controlnet-hed-v1 with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline
controlnet = ControlNetModel.from_pretrained("TheDenk/cogvideox-2b-controlnet-hed-v1")
pipe = StableDiffusionControlNetPipeline.from_pretrained(
"fill-in-base-model", controlnet=controlnet
)ComfyUI-CogVideoXWrapper supports controlnet pipeline. See an example file.
Clone repo
git clone https://github.com/TheDenk/cogvideox-controlnet.git
cd cogvideox-controlnet
Create venv
python -m venv venv
source venv/bin/activate
Install requirements
pip install -r requirements.txt
python -m inference.cli_demo \
--video_path "resources/car.mp4" \
--prompt "car is moving among mountains" \
--controlnet_type "hed" \
--base_model_path THUDM/CogVideoX-2b \
--controlnet_model_path TheDenk/cogvideox-2b-controlnet-hed-v1
python -m inference.gradio_web_demo \
--controlnet_type "hed" \
--base_model_path THUDM/CogVideoX-2b \
--controlnet_model_path TheDenk/cogvideox-2b-controlnet-hed-v1
Original code and models CogVideoX.
Issues should be raised directly in the repository. For professional support and recommendations please welcomedenk@gmail.com.