Download 3_ControlNet/inference.sh from Qiyp/DiffICM: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/Qiyp/DiffICM/resolve/main/3_ControlNet/inference.sh
- Command line
-
hf download hf://Qiyp/DiffICM/3_ControlNet/inference.sh
-
curl -L -o inference.sh https://huggingface.co/Qiyp/DiffICM/resolve/main/3_ControlNet/inference.sh
1.11 kB
| #### access DINOv2 | |
| export CUDA_VISIBLE_DEVICES=0,1,2,3; | |
| python -m torch.distributed.launch --nproc_per_node=4 --use_env 3_inference.py \ | |
| --batch-size 32 --total_train_steps 50000 \ | |
| --teacher-model vit_large --target_model vit_base --model models_proteus_dinov2 \ | |
| --patch_size 14 --cldm_learning_rate 1e-4 \ | |
| --lambda_token 1.0 --lambda_fea 1.05 --lambda_patch 1.05 \ | |
| --resume "/home/t2vg-a100-G4-1/projects/qiyp/1_feature_extractor/1_feature_extractor/checkpoint0160.pth" \ | |
| --log_dir '/home/t2vg-a100-G4-1/projects/qiyp/3_ControlNet/log/' \ | |
| --resume_path '/home/t2vg-a100-G4-1/projects/qiyp/3_ControlNet/models/control_sd15_ini.ckpt' \ | |
| --image_floder '/home/t2vg-a100-G4-1/projects/dataset/train2017' \ | |
| --txt_path '/home/t2vg-a100-G4-1/projects/dataset/annotations/captions_train2017.json' \ | |
| --log_every 50 --ckpt_every 5000 --image_every 1000 \ | |
| --controlnet_dir "/home/t2vg-a100-G4-1/projects/qiyp/3_ControlNet/exp_old/checkpoints/0050000.pt" \ | |
| --global_step 35000 \ | |
| --save_img_path "/home/t2vg-a100-G4-1/projects/qiyp/3_ControlNet/exp/outputs_old" \ | |