jbilcke-hf's picture
jbilcke-hf HF Staff
we are going to hack into finetrainers
9fd1204

A newer version of the Gradio SDK is available: 5.35.0

Upgrade

CogView4 Canny Control training

To launch training, you can run the following from the root directory of the repository.

chmod +x ./examples/training/sft/cogview4/canny/train.sh
./examples/training/sft/cogview4/canny/train.sh

The script should automatically download the validation dataset, but in case that doesn't happen, please make sure that a folder named validation_dataset exists in examples/training/sft/cogview4/omni_edit/ and contains the validation dataset. You can also configure validation.json in the same directory however you like for your own validation dataset.

cd examples/training/sft/cogview4/canny/
huggingface-cli download --repo-type dataset finetrainers/Canny-image-validation-dataset --local-dir validation_dataset