Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

How to load our own model from Googe Drive? #21

Open
Woisek opened this issue May 2, 2023 · 8 comments
Open

How to load our own model from Googe Drive? #21

Woisek opened this issue May 2, 2023 · 8 comments

Comments

@Woisek
Copy link

Woisek commented May 2, 2023

Any chance, to get the possibility, to use a checkpoint from google drive itself and not been limited to this few? 🙂

@BinaryQuantumSoul
Copy link

Please give context. I see you're coming from vladmantic/automatic so here's how to do in the fast-vladmantic-webui:
image
Just paste the url there xD

@Woisek
Copy link
Author

Woisek commented May 2, 2023

Ah, cool, thanks. Haven't noticed it ... 🤪

@sahildeshpande
Copy link

Can I paste a drive path instead of a URL?

@BinaryQuantumSoul
Copy link

Can I paste a drive path instead of a URL?

Yes you can if you mount the drive in the first cell of the notebook. Just use /content/drive/MyDrive/yourfilepath you cannot give a directory sadly, just an individual file

@Linaqruf
Copy link
Owner

Linaqruf commented May 7, 2023

@BinaryQuantumSoul Thank you for the answer! I appreciate it. And sorry for my late reply.
Yes, you can use your own model from google drive by doing this step

  1. Set mount_drive to True
  2. Copy the model path from you google drive, and paste the path to custom_model_url in Custom Download Corner cell
  3. Run cell

You can also use your own LoRA, embeddings, hypernetwork, and even Install custom extensions too! By doing the same step, but paste the path/url to respective category url.

@Linaqruf
Copy link
Owner

Linaqruf commented May 7, 2023

[Advanced]

You can also load your whole model folder instead of copying every model path. I have integrated unionfs-fuse inside the notebook to merge your own model folder.

Please do this step:

  1. Set mount_drive to True
  2. Copy the model folder path from your google drive
  3. Add prefix fuse: before your model folder path, example
fuse:/content/drive/MyDrive/my-model
  1. Run the cell

You can load your model from google drive at once!

@BinaryQuantumSoul
Copy link

Thank you, I didn't know about fuse, I had to copy path ten times.

@Linaqruf Linaqruf pinned this issue May 7, 2023
@Linaqruf Linaqruf changed the title Using our own models How to load our own model from Googe Drive? May 7, 2023
@Linaqruf
Copy link
Owner

Linaqruf commented May 7, 2023

I'm sorry I renamed this issue, hope it will help other friends out there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants