ControlNet training out of memory #8256
Closed
MaybeRichard
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @MaybeRichard, you can try to modify the For more details, please refer to: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm following the instruction in the README.md and try to train ControlNet with KiTS dataset. I've met the following problem and I can't find solution from the instruction1.
python -m scripts.train_controlnet -c ./configs/config_maisi.json -t ./configs/config_maisi_controlnet_train.json -e ./configs/environment_maisi_controlnet_train.json -g 1
, and the problem is " CUDA out of memory." I check the 'config_maisi_controlnet_train.json' file and the batch_size is 1. I also check the C4KC-KiTS_subset.json and I found the dimention is 512512512. I think this is because the input size is too large but the 'C4KC-KiTS_subset.json' and the correspoding dataset is downloaded from CLI, I'm nor sure could I change the dimention size or do I need to regenerate the json file. I also wanna know how to generate my own dataset that met the format requirement like 'C4KC-KiTS_subset.json'.Beta Was this translation helpful? Give feedback.
All reactions