Training Time error
Related to: AI Unlimited
Date: 09/12/2022 10:22
User: Marelva Blenman
Awards:
I added pics for own image but this is the message I got.
Traceback (most recent call last):
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 797, in
main()
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 472, in main
tokenizer = CLIPTokenizer.from_pretrained(args.pretrained_model_name_or_path, subfolder="tokenizer")
File "/usr/local/lib/python3.8/dist-packages/transformers/tokenization_utils_base.py", line 1761, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for '/content/stable-diffusion-v1-5'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure '/content/stable-diffusion-v1-5' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.
Traceback (most recent call last):
File "/usr/local/bin/accelerate", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/accelerate/commands/accelerate_cli.py", line 43, in main
args.func(args)
File "/usr/local/lib/python3.8/dist-packages/accelerate/commands/launch.py", line 837, in launch_command
simple_launcher(args)
File "/usr/local/lib/python3.8/dist-packages/accelerate/commands/launch.py", line 354, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '/content/diffusers/examples/dreambooth/train_dreambooth.py', '--save_starting_step=500', '--save_n_steps=0', '--train_text_encoder', '--pretrained_model_name_or_path=/content/stable-diffusion-v1-5', '--instance_data_dir=/content/data/Shablen', '--class_data_dir=/content/regularization_images/person_ddim', '--output_dir=/content/models/Shablen', '--with_prior_preservation', '--prior_loss_weight=1.0', '--instance_prompt=photo of Shablen woman', '--class_prompt=a photo of a woman, ultra detailed', '--seed=75576', '--resolution=512', '--mixed_precision=fp16', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--gradient_checkpointing', '--use_8bit_adam', '--learning_rate=1e-6', '--lr_scheduler=constant', '--lr_warmup_steps=0', '--center_crop', '--max_train_steps=1600', '--num_class_images=500']' returned non-zero exit status 1.
Something went wrong
Date: 09/12/2022 10:22
User: Jorge Vila
Awards:
Respuesta Aprobada
Please have a look at this:
Can't load tokenizer for '/content/stable-diffusion-v1-5'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure '/content/stable-diffusion-v1-5' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.
I really recommend to get a new GMail account for playing with this and not interfere with previous folders you might have there!
Otherwise, LMK!