Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get "--controlnet_ckpt YOUR_PATH_TO_CONTROLNET_CKPT_FOLDER" this file #18

Open
chahu-12 opened this issue Dec 11, 2024 · 7 comments

Comments

@chahu-12
Copy link

No description provided.

@claudiom4sir
Copy link
Owner

Hi, if you trained a model using the training code, you should have a folder with the controlnet checkpoints like this:
image
You have to specify the path to checkpoint-20000 for example. This folder should contain the controlnet subfolder with config and weights.

@chahu-12
Copy link
Author

Hi, if you trained a model using the training code, you should have a folder with the controlnet checkpoints like this: image You have to specify the path to checkpoint-20000 for example. This folder should contain the controlnet subfolder with config and weights.

Thank you! I have another question:
image
how can i get this file

@claudiom4sir
Copy link
Owner

You don't need that file as the test options are not used during training. Anyway, you can find the metadata here.

@chahu-12
Copy link
Author

chahu-12 commented Dec 13, 2024

Hi, if you trained a model using the training code, you should have a folder with the controlnet checkpoints like this: image You have to specify the path to checkpoint-20000 for example. This folder should contain the controlnet subfolder with config and weights.

Hi I trained successfully,and I got checkpoint-20000 folder. Is the path the controlnet folder under checkpoint-20000? I tried the controlnet folder、checkpoint-20000 folder and the diffusion_pytorch_model.safetensors model, and both showed the following error: test.py: error: unrecognized arguments: --controlnet_ckpt /home/ch/StableVSR/experiments/my_exp_name/checkpoint-20000/controlnet/diffusion_pytorch_model.safetensors

@claudiom4sir
Copy link
Owner

claudiom4sir commented Dec 13, 2024

The correct path to specify to --controlnet_ckpt is /home/ch/StableVSR/experiments/my_exp_name/checkpoint-20000, or whatever your path is to the checkpoint-20000 folder.

test.py: error: unrecognized arguments: --controlnet_ckpt /home/ch/StableVSR/experiments/my_exp_name/checkpoint-20000/controlnet/diffusion_pytorch_model.safetensors

This error seems related to the --controlnet_ckpt argument, which it does not recognize. It may be related to some syntax error when typing the python test.py command.

@chahu-12
Copy link
Author

The correct path to specify to --controlnet_ckpt is /home/ch/StableVSR/experiments/my_exp_name/checkpoint-20000, or whatever your path is to the checkpoint-20000 folder.

image
But still error

@claudiom4sir
Copy link
Owner

I tried on my machine and the command python test.py --out_path ./check/ --in_path home/crota/Datasets/REDS/test/bicubic/ --controlnet_ckpt /home/crota/diffusers/examples/controlnet/experiments/CNet_video_bidirectional_of_x0est/checkpoint-20000 works perfectly.

Check if your test.py file corresponds to the one in the latest commit, as I recently updated it and you might have an older version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants