Cartoon images from any images
Related to: AI Unlimited
Date: 31/01/2023 22:06
User: Leonid Rodine
Awards:
Hello,
Is it possible to cartoon any image in your software?
For example, import any image or request it by Google it(image)?
Is it a 4K image?
What format of the image is possible?
Is it possible resizing the image and modify it?
Is it possible to divide the image into layers and change the colours of the elements and even modify them too?
Error on "Start stable-diffusion"
Related to: AI Unlimited
Date: 29/01/2023 19:06
User: Klaus Lehne
Awards:
Hi,
I have checked other questions to the same topic but my error message seems to be different.
I have completed all steps up to the last (Start stable-diffusion) All have a green checkmark.
I have done the steps one after the other without delays inbetween.
The message on the last step is like follows:
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
in
62 if Use_Gradio_Server:
63 share='--share'
---> 64 for line in fileinput.input('/usr/local/lib/python3.8/dist-packages/gradio/blocks.py', inplace=True):
65 if line.strip().startswith('self.server_name ='):
66 line = ' self.server_name = server_name\n'
1 frames
/usr/lib/python3.8/fileinput.py in _readline(self)
340 pass
341 # The next few lines may raise OSError
--> 342 os.rename(self._filename, self._backupfilename)
343 self._file = open(self._backupfilename, self._mode)
344 try:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/gradio/blocks.py' -> '/usr/local/lib/python3.8/dist-packages/gradio/blocks.py.bak'
Any idea how to correct that?
Thanks
Klaus
Use Your Own Images Video - Step 17
Related to: AI Unlimited
Date: 29/01/2023 19:06
User: Tony Dunne
Awards:
Hi Jorge,
I've been struggling with the training and have made lots of false starts, going back to the beginning several times.
My latest attempt got me to Step 17, after I loaded the photos of myself to experiment with.
Unfortunately I got the following error message:
The following values were not passed to `accelerate launch` and had defaults used instead:
`--num_processes` was set to a value of `1`
`--num_machines` was set to a value of `1`
`--mixed_precision` was set to a value of `'no'`
`--num_cpu_threads_per_process` was set to `1` to improve out-of-box performance
To avoid this warning pass in values for each of the problematic parameters or run `accelerate config`.
Traceback (most recent call last):
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 24, in
from transformers import CLIPTextModel, CLIPTokenizer
ModuleNotFoundError: No module named 'transformers'
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/lalalal2', '--class_data_dir=/content/regularization_images/person_ddim', '--output_dir=/content/models/lalalal2', '--with_prior_preservation', '--prior_loss_weight=1.0', '--instance_prompt=photo of lalalal2 person', '--class_prompt=a photo of a person, 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
I'm afraid this means nothing to me. Could you explain? Should I delete everything and try again, or is there a work around that's less trouble?
I'm no computer programmer and need help in plain language so I can make sense of what needs to be done.
Your help would be most appreciated.
Many thanks.
Tony Dunne