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

subprocess.CalledProcessError #2310

Closed
lawliet198t opened this issue Apr 17, 2024 · 5 comments
Closed

subprocess.CalledProcessError #2310

lawliet198t opened this issue Apr 17, 2024 · 5 comments

Comments

@lawliet198t
Copy link

The following values were not passed to accelerate launch and had defaults used instead:
--dynamo_backend was set to a value of 'no'
To avoid this warning pass in values for each of the problematic parameters or run accelerate config.
/usr/bin/python: can't open file '/workspace/all_data/sd-scripts/sdxl_train_network.py': [Errno 2] No such file or directory
Traceback (most recent call last):
File "/usr/local/bin/accelerate", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/accelerate_cli.py", line 47, in main
args.func(args)
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 1017, in launch_command
simple_launcher(args)
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 637, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '/workspace/all_data/sd-scripts/sdxl_train_network.py', '--bucket_no_upscale', '--bucket_reso_steps=64', '--cache_latents', '--enable_bucket', '--min_bucket_reso=256', '--max_bucket_reso=2048', '--full_bf16', '--gradient_checkpointing', '--huber_c=0.1', '--huber_schedule=snr', '--learning_rate=0.0003', '--logging_dir=/workspace/all_data/logs', '--loss_type=l2', '--lr_scheduler=constant', '--lr_scheduler_num_cycles=5', '--max_data_loader_n_workers=0', '--max_grad_norm=1', '--resolution=1024,1024', '--max_train_steps=14500', '--min_timestep=0', '--mixed_precision=bf16', '--network_alpha=1', '--network_dim=384', '--network_dropout=0.2', '--network_module=networks.lora', '--no_half_vae', '--optimizer_type=AdamW', '--output_dir=/workspace/all_data/outputs', '--output_name=mariana last', '--pretrained_model_name_or_path=/workspace/all_data/models/sd_xl_base_1.0.safetensors', '--reg_data_dir=/workspace/all_data/regulization', '--save_every_n_epochs=5', '--save_model_as=safetensors', '--save_precision=bf16', '--text_encoder_lr=0.0003', '--train_batch_size=1', '--train_data_dir=/workspace/all_data/images', '--unet_lr=0.0003', '--xformers']' returned non-zero exit status 2.

@bmaltais
Copy link
Owner

Can you do a git pull to upgrade to the latest version of the code? You appear to use an older version.

@lawliet198t
Copy link
Author

ok i am trying

@lawliet198t
Copy link
Author

welp i am running it on runpod it sometimes just work magically or never works .

@lawliet198t
Copy link
Author

lol it worked

@bmaltais
Copy link
Owner

It will work much different but at least will give a better base to start troubleshooting.

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