Watch Question

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

Answers

Date: 15/01/2023 16:03
User: Jorge Vila
Awards:
Delete the SD Folder must be remover before starting the proccess, At the end, it should be created, let me know!
Jorge
Date: 16/01/2023 19:53
User: Klaus Lehne
Awards:
Hi Jorge,
thanks but that didn't help.
I had this SD-folder removed already yesterday before I uploaded this pruned-emaonly.ckpt file.
Now I started all over again, removed the sd folder from Google Drive (it was created on or after the upload. I also removed pruned-emaonly.ckpt file. Then I uploaded it again, making sure there. was no sd folder on my Drive.
Then I went through steps 6 to 12 from your instructions. But on Step 12 I had the same error message as above.

By the way: this time there was no sd-folder created when uploading the .ckpt file.
And I had a warning message about some runtime environment. The message went away by its own and I can't remember the exact wording.

Klaus
Date: 17/01/2023 08:58
User: Jorge Vila
Awards:
Just updated the Create your own images Colab, please access again and try to retrain!
Let me know!
Jorge
Date: 17/01/2023 20:24
User: Klaus Lehne
Awards:
Sorry, still doesn't work. Almost the same error message. Only a little different:

FileNotFoundError Traceback (most recent call last)
in
78 srv= getoutput('cat /content/srvr.txt')
79
---> 80 for line in fileinput.input('/usr/local/lib/python3.8/dist-packages/gradio/blocks.py', inplace=True):
81 if line.strip().startswith('self.server_name ='):
82 line = f' self.server_name = "{srv[8:]}"\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'

And there is this warning message I mentioned yesterday (translated):
You are connected to a GPU-runtime but you don't use the GPU.

Klaus
Date: 29/01/2023 19:06
User: Jorge Vila
Awards:
Respuesta Aprobada
What version are you trying to run, 1.5, 2.1 or Use your own images?
Let me know
Jorge


Copyright jorgevila.com 2024

Helpdesk system developed for online help. If you need to contact me or use this system in your products, contact me through jorge@jorgevila.com