I am trying to follow along the ‘Sampling’ section of ‘How diffusion models work’, but when I go to install diffusion_utilities, the package is not found. What channel should I use to pull in this package?
I was able to get it using inspect.
Try:
import diffusion_utilities as df
import inspect
lines = inspect.getsource(df)
print(lines)
Now I am stuck on the data. Where do I get the data?
This also worked: File → Open
That doesn’t actually help, because ‘diffusion_utiltities’ is not installed. When you ran that locally, did it indicate where ‘diffusion_utilities’ was installed from? If so, please share it here.
If not, and you are using conda, please share the output of:
`conda config --show channels`
…so that I can see the channels you may have installed it from.
Thanks in advance for any help here!
When try to run the code locally, I am getting the following:
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 13
11 import numpy as np
12 from IPython.display import HTML
—> 13 from diffusion_utilities import *
ModuleNotFoundError: No module named ‘diffusion_utilities’
Which module to install?
Is there any requirements.txt
Looks the diffusion_utilites module includes helper functions written by the instructor and team. Hope we could get the source code and play around ourselves.
@sharonzhou (I know, it won’t work.)
You can go to File → Open and download diffusion_utilities.py. Next, you can put diffusion_utilities.py into your conda root folder so that the import statement can find it. If you cannot get this to work, you can simply copy the code from diffusion_utilities.py and paste it into your notebook and remove the import statement.
Excellent, thanks for the tip: I can now run the code on my local machine.
You guys rock!
Thx man!