-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
train_dreambooth_inpaint.py throwing "returned non-zero exit status 1" error #2444
Comments
Solved! I changed "accelerator_project_config" to "project_config" and it worked. Looks like the variable Accelerate is looking for is "project_config": https://github.com/huggingface/accelerate/blob/main/src/accelerate/accelerator.py Didn't get around to submitting a PR yet. I've never submitted one, so need to still read through the guidelines on how to do that. |
Thanks and glad that it got resolved! |
Thank you. This error should be fixed immediately. @thedarkzeno @patil-suraj |
@lakshman111 could we close this issue? |
No. The error still persists. It needs to be fixed. If you want, I can do it. |
That'd be very nice! |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Describe the bug
@thedarkzeno @patil-suraj
I've been running train_dreambooth_inpaint.py from https://github.com/huggingface/diffusers/tree/main/examples/research_projects/dreambooth_inpaint for the last few days with the same environment configurations. Today I ran it again and got:
Traceback (most recent call last):
File "train_dreambooth_inpaint.py", line 825, in
main()
File "train_dreambooth_inpaint.py", line 421, in main
accelerator = Accelerator(
TypeError: init() got an unexpected keyword argument 'accelerator_project_config'
Traceback (most recent call last):
File "/usr/local/envs/laksh/bin/accelerate", line 8, in
sys.exit(main())
File "/usr/local/envs/laksh/lib/python3.8/site-packages/accelerate/commands/accelerate_cli.py", line 45, in main
args.func(args)
File "/usr/local/envs/laksh/lib/python3.8/site-packages/accelerate/commands/launch.py", line 1097, in launch_command
simple_launcher(args)
File "/usr/local/envs/laksh/lib/python3.8/site-packages/accelerate/commands/launch.py", line 552, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/usr/local/envs/laksh/bin/python', 'train_dreambooth_inpaint.py', '--pretrained_model_name_or_path=runwayml/stable-diffusion-inpainting', '--instance_data_dir=/workspace/diffusers/examples/research_projects/dreambooth_inpaint/modern_512_images', '--output_dir=/workspace/diffusers/examples/research_projects/dreambooth_inpaint/modern_512_400steps_model', '--instance_prompt=a photo of mmodern furniture', '--resolution=512', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--learning_rate=5e-6', '--lr_scheduler=constant', '--lr_warmup_steps=0', '--max_train_steps=400']' returned non-zero exit status 1.
Reproduction
`export MODEL_NAME="runwayml/stable-diffusion-inpainting"
export INSTANCE_DIR="/workspace/diffusers/examples/research_projects/dreambooth_inpaint/modern_512_images"
export OUTPUT_DIR="/workspace/diffusers/examples/research_projects/dreambooth_inpaint/modern_512_400steps_model"
accelerate launch train_dreambooth_inpaint.py
--pretrained_model_name_or_path=$MODEL_NAME
--instance_data_dir=$INSTANCE_DIR
--output_dir=$OUTPUT_DIR
--instance_prompt="a photo of mmodern furniture"
--resolution=512
--train_batch_size=1
--gradient_accumulation_steps=1
--learning_rate=5e-6
--lr_scheduler="constant"
--lr_warmup_steps=0
--max_train_steps=400`
Logs
No response
System Info
diffusers
version: 0.14.0.dev0The text was updated successfully, but these errors were encountered: