Loading models into Colab from URL

Viewing 8 reply threads
  • Author
    Posts
    • #15679
      David Rawlins
      Participant

        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

      • #15692
        AndrewAndrew
        Keymaster

          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?

        • #15694
          David Rawlins
          Participant

            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

          • #15695
            David Rawlins
            Participant

              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=Model

              Status 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-diffusion

               

              Both 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

            • #15697
              AndrewAndrew
              Keymaster
              • #15698
                AndrewAndrew
                Keymaster

                  OK, it should now work with links with question marks.

                • #15702
                  David Rawlins
                  Participant

                    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

                  • #15707
                    David Rawlins
                    Participant

                      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?

                    • #15711
                      AndrewAndrew
                      Keymaster

                        Do you have example inputs that don’t work? It could potentially be improved.

                    Viewing 8 reply threads
                    • You must be logged in to reply to this topic.