SyntaxError: EOL while scanning string literal
See original GitHub issueIt’s a new model, did nothing different from previous trainings on other models
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 475
if os.path.exists(str(args.output_dir+"/text_encoder_trained):
^
SyntaxError: EOL while scanning string literal
Traceback (most recent call last):
File "/usr/local/bin/accelerate", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/accelerate_cli.py", line 43, in main
args.func(args)
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 837, in launch_command
simple_launcher(args)
File "/usr/local/lib/python3.7/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', '--image_captions_filename', '--train_text_encoder', '--save_starting_step=1200', '--stop_text_encoder_training=540', '--save_n_steps=1200', '--Session_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cydotfd_woman_hanged_with_noose_around_neck_tied_hands_naked_nude_barefoot', '--pretrained_model_name_or_path=/content/stable-diffusion-v1-5', '--instance_data_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cydotfd_woman_hanged_with_noose_around_neck_tied_hands_naked_nude_barefoot/instance_images', '--output_dir=/content/models/cydotfd_woman_hanged_with_noose_around_neck_tied_hands_naked_nude_barefoot', '--instance_prompt=', '--seed=96576', '--resolution=512', '--mixed_precision=no', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--use_8bit_adam', '--learning_rate=2e-6', '--lr_scheduler=polynomial', '--lr_warmup_steps=0', '--max_train_steps=3600']' returned non-zero exit status 1.
Something went wrong
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
SyntaxError- EOL while scanning string literal
An EOL ( End of Line ) error indicates that the Python interpreter expected a particular character or set of characters to have...
Read more >Syntax Error: EOL while scanning string literal - AskPython
We can not solve a problem unless we effectively understand it. EOL stands for “End of Line”. The error means that the Python...
Read more >python: SyntaxError: EOL while scanning string literal
I had this problem - I eventually worked out that the reason was that I'd included \ characters in the string. If you...
Read more >How To Fix Python Error EOL While Scanning? - Skynats
The Python interpreter will return an EOL error if the quotation mark at the end of the string literal is missing. We can...
Read more >4 Quick Solutions To EOL While Scanning String Literal Error
EOL While Scanning String Literal Error appears when your python code ends before ending the string quotes. In simpler terms, your string quotes ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fixed, do this in a new cell to avoid restarting the session :
i’ll fix it in a minute