Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Model without Mount and another error #6

Open
poepoeng opened this issue Jan 15, 2023 · 1 comment
Open

Custom Model without Mount and another error #6

poepoeng opened this issue Jan 15, 2023 · 1 comment

Comments

@poepoeng
Copy link

Nice work
but i wanna ask, Is mounting to gdrive a must? .
Im trying to delete mounting gdrive, downloading custom model, edit yaml for custom model but its keep cant run when last cell.

this command also give me error so i make new folder

%mkdir -p /root/invokeai/configs/ 
%cp ../invoke-ai-gui-colab/models.yaml /root/invokeai/configs 

its better if not using mounted gdrive and download manually model / custom model.
like this

import os

os.system('cd /')
os.system('mkdir -p /root/invokeai/models/ldm/stable-diffusion-v1')
os.system('wget -O /root/invokeai/models/ldm/stable-diffusion-v1/Anything-V3.0-pruned.ckpt https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0-pruned.ckpt')
os.system('wget -O /root/invokeai/models/ldm/stable-diffusion-v1/Anything-V3.0.vae.pt https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0.vae.pt')
os.system('wget -O /root/invokeai/models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt')

waiting for update

@peaashmeter
Copy link
Owner

Hi.
The script was out of service today because of a disruptive update of dnspython. I've kinda fixed the bug with

!echo ' - dnspython==2.2.1' >> environments-and-requirements/environment-lin-cuda.yml,

and now your code should be able to run fine.
The only reason for mounting gdrive is to save some time on startup. With mounting, you have to download the model only once. I understand that a lot of people use the notebook with other models than AnythingV3. I'll see if we can use a convenient way to do the thing, like a form, where you would type a link to your desired model.

Thanks for your feedback!

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

No branches or pull requests

2 participants