Can i run this model in Google Colab?

#54
by WiNE-iNEFF - opened

Hi guys. Can i run this model in Google Colab and how do this?

deleted

Hello @WiNE-iNEFF ,

Yes, it is possible to use in a Colab, but how you do so can vary based on the Colab in question.

For example, with the TheLastBen Colab (https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb), it's as simple as providing it a direct link to the model via MODEL_LINK.

Direct links to models on HF can be determined via the download link for a given model, e.x. https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix2/AbyssOrangeMix2_sfw.safetensors

image.png

I'd recommend you use one of the pruned versions at https://huggingface.co/WarriorMama777/OrangeMixs/tree/refs%2Fpr%2F44/Models/AbyssOrangeMix2, as these have the VAE already baked in, saving you the hassle of trying to download that and activate it.

i have a colab note book if you want to run the web ui straight out of the box :D

@67372a hello how would i download a vae if it wasnt baked in the model ;-;

deleted

Hello @Bebaiiunaenisjw ,

Check out the discussion here for ways to do so, https://huggingface.co/WarriorMama777/OrangeMixs/discussions/30.

@67372a In your post above you mentioned the hard pruned model, noob question incoming so please forgive me. Are there any hard pruned models for the v3 version or any of the other ones you k now of?

Also,
will this code suffice

!wget https://huggingface.co/WarriorMama777/OrangeMixs/resolve/refs%2Fpr%2F44/Models/AbyssOrangeMix2/AbyssOrangeMix2_hard_pruned_fp16_with_VAE.ckpt

Or do I have to add some sort of ending like -O models/Stable-diffusion/{model_name} after like below?
I'm using the FK StableDiffusionUI-Voldemort collab
BTW DUDE thX FOR THE HELP ABOVE sry im new at all this coding stuff

model_name = "model_name" #put your model name here {type:"string"}
model_link = "model_link" #put your model link here {type:"string"}
!wget {model_link} -O models/Stable-diffusion/{model_name}

@67372a Also I look at the ben collab and it look same to mine but i wonder wat control net is. If it sometin cool I use ;D.

I've got the "wrong link, check that the link is valid" message in Colab when I try to use direct link to the model. I paste the link here: MODEL_LINK
I use this Colab https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb
So please, can someone explain me what's wrong I do or why it happens?
Thank you.

Sign up or log in to comment