-
Notifications
You must be signed in to change notification settings - Fork 51
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
ModuleNotFoundError: No module named 'ldm.models'; 'ldm' is not a package & Is Conitive Face API Required? #3
Comments
you installed the wrong package: ldm from pypi is not the right package. You should clone this repo https://github.com/CompVis/latent-diffusion and pip install . |
ffs I'm an actual complete idiot, thank you. |
I'm trying to follow your directions of cloning the repo and pip installing like so:
Ideas? |
I'd advice you to clone the repository and then install locally. Is that what you already did? (wrong account, but I'm limiteinductive) |
@jdluzen he's saying clone then do @ben-selas @limiteinductive I'm getting the same error sorry I don't fully understand do we have to install: https://github.com/CompVis/latent-diffusion/tree/main/models/ldm from the main model then run the sample on glide? pip list also doesn't show ldm installed. |
@wes-kay Could you print the output of your pip freeze after you installed CompVis latent-diffusion package? |
On windows
`Successfully built latent-diffusion `
` |
@wes-kay I'd advise you to use python 3.8 for deep learning packages (although I don't think it is the issue here). When you open your python console and type |
@limiteinductive It's not installed. As the setup in the latent diffusion doesn't contain the install for the package: https://github.com/CompVis/latent-diffusion/blob/main/setup.py "ldm from pypi is not the right package" Where do we get the correct ldm? |
Did you try installing it using conda and the environment.yaml file like advertised in the Readme of the CompVis package? |
:shame: I installed Conda but forgot to actually run the yaml... Thank you for your contribution and time! |
@limiteinductive PROMISE I will leave you alone after this. I installed ld with conda and I can run the ld sample, but now trying to run glide:
I can just install this with pip normally or do I need to do something else? |
@wes-kay ha ha, don't worry. Yes sure you can install it. If it bugs it means you probably need to install a newer version of pytorch in your ldm env. We should probably refactor the glid-3-xl to have a better install script |
Thank you for all your help it's working now but throwing a |
Okay fixed that, with a re install and update of torch, now getting
:D |
@wes-kay bad news: your GPU is doesn't have enough VRAM. You should use a service like google colab, or kaggle notebooks if you wanna run this package |
@limiteinductive Thought as much, final question, I spun up a deep learning EC2 but getting:
Do I need higher specs? EDIT: Looks like their "Deep" learning doesn't have GPUs |
yeah it seems so. You probably won't get a GPU for less than 0.25/hour |
I still have the same problem and I have done pip install . locally. This is the error: eprint(line:60) :: img_url:https://raw.githubusercontent.com/Microsoft/Cognitive-Face-Windows/master/Data/detection1.jpg |
I'm having an issue running this using what's available here. I've gotten this far but I'm just not sure how to proceed at this point. Is cognitive face API required? can it be removed? I'd personally rather not have every single sample going to microsoft if I could personally help it.
Distro: PopOS 22.01
NVIDIA-SMI:
Python: 3.10.4
The text was updated successfully, but these errors were encountered: