There's no setup.py to handle installing dependencies.
dump.py requires tinygrad dependency.
Result:
Traceback (most recent call last):
File "D:\repo\stable_diffusion\stable-diffusion-burn\python\dump.py", line 15, in <module>
from tinygrad.tensor import Tensor
ModuleNotFoundError: No module named 'tinygrad'
Fix: install tinygrad dependency.
Installing tinygrad via package manager pulls the wrong version (it pulls 0.6.0, but a required symbol isn't introduced until after that version).
Result:
Traceback (most recent call last):
File "<REDACTED>...\stable-diffusion-burn\python\dump.py", line 17, in <module>
from tinygrad.nn import Conv2d, Linear, GroupNorm, LayerNorm, Embedding
ImportError: cannot import name 'Embedding' from 'tinygrad.nn' (D:\python\python311\Lib\site-packages\tinygrad\nn\__init__.py)
Fix: install the absolute latest tinygrad from source
cd stable-diffusion-burn\python
git clone https://github.com/tinygrad/tinygrad.git
cd tinygrad
python3 -m pip install -e .
dump.py uses tinygrad's 'extra' directory, which AFAICT isn't an installable package.
Result:
Traceback (most recent call last):
File "<REDACTED>...\stable-diffusion-burn\python\dump.py", line 18, in <module>
from extra.utils import download_file
ModuleNotFoundError: No module named 'extra'
Fix: copy 'extra' directory into stable-diffusion-burn\python
There's no
setup.py
to handle installing dependencies.dump.py
requires tinygrad dependency. Result:Fix: install tinygrad dependency.
Installing tinygrad via package manager pulls the wrong version (it pulls 0.6.0, but a required symbol isn't introduced until after that version). Result:
Fix: install the absolute latest tinygrad from source
dump.py uses tinygrad's 'extra' directory, which AFAICT isn't an installable package. Result:
Fix: copy 'extra' directory into
stable-diffusion-burn\python
It seems to work now, but not for a .safetensors file Result: