- This topic has 8 replies, 2 voices, and was last updated 2 weeks, 4 days ago by Andrew.
-
AuthorPosts
-
-
November 4, 2024 at 4:49 pm #15679
Hi Andrew
I’ve successfully loaded some models from Civitai into a Colab session using the Forge and A1111 notebooks and a Civitai API but others don’t work. They produce an error as the session is loaded which seems to be either an authorisation error or an unspecified error. But the execution log is overwritten too quickly for me to read all of what it says. Is there a way to access the full log once the code has been executed and do you have any suggestions for what the authorisation error might be? I have been attempting to load the latest versions of the fp16 models.
Thanks
David
-
November 5, 2024 at 6:05 am #15692
You can uncheck the “Clear” or “Clear_output” checkbox so that you can see the error message.
Some models need an API key to download. Did you create and use one?
-
November 5, 2024 at 6:35 am #15694
Thanks, I replied with some examples and links but my post has disappeared – perhaps it is in your moderating inbox? If not, I’ll resend
-
November 5, 2024 at 7:03 pm #15695
here it is again
Thanks for the info about the log – that’s useful
Yes, I’m using an API.
For example, Elegance loads ok with the following URL:
https://civitai.com/api/download/models/140255?type=Model&format=SafeTensor&size=pruned&fp=fp16
But Cyberrealistic Pony with this URL gives an error:
https://civitai.com/api/download/models/953264?type=Model&format=SafeTensor&size=pruned&fp=fp16
This is the execution log
11/05 11:20:42 [ERROR] CUID#7 – Download aborted. URI=https://civitai.com/api/download/models/953264?type=Model
Exception: [AbstractCommand.cc:351] errorCode=24 URI=https://civitai.com/api/download/models/953264?type=Model
-> [HttpSkipResponseCommand.cc:215] errorCode=24 Authorization failed.Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
c9b366|ERR | 0B/s|https://civitai.com/api/download/models/953264?type=ModelStatus Legend:
(ERR):error occurred.aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See ‘-l’ option in help/man page for details.
/content/stable-diffusion-webui-forge/models/Stable-diffusionBoth URLs were in the URL part of the form separated by a comma. I tried a different API but got the same result.
Can you advise?
Thanks
David
-
November 5, 2024 at 7:05 pm #15697
Try removing the text after the question mark, e.g.
https://civitai.com/api/download/models/953264?type=Model&format=SafeTensor&size=pruned&fp=fp16
to
https://civitai.com/api/download/models/953264
-
November 5, 2024 at 7:25 pm #15698
OK, it should now work with links with question marks.
-
November 6, 2024 at 7:04 am #15702
Thanks, Andrew,
It works if I remove the text after the model number but it still often doesn’t work if I leave it in.
I realised I had been putting in spaces after the comma between urls so removed them but it didn’t seem to make a difference.
At least I can now load all the models I need so that’s good
-
November 8, 2024 at 6:44 am #15707
Further to this, the form seems sensitive to stray spaces and commas between the URLs and they cause errors. OK now I know but perhaps the parsing could be made more flexible for others?
-
November 8, 2024 at 10:49 am #15711
Do you have example inputs that don’t work? It could potentially be improved.
-
-
AuthorPosts
- You must be logged in to reply to this topic.