4 ms·
I followed the conda instruction which uses Python 3.9 and ran into the same issue. The workaround is to import TypeAlias from typing_extensions: stable-diffus
by itsuka 4y ago
I followed the conda instruction which uses Python 3.9 and ran into the same issue. The workaround is to import TypeAlias from typing_extensions:
stable-diffusion/src/k-diffusion/k_diffusion/sampling.py
(before)
from typing import Optional, Callable, TypeAlias
(after)
from typing import Optional, Callable
from typing_extensions import TypeAlias
This issue is tracked in https://github.com/lstein/stable-diffusion/issues/302 https://github.com/lstein/stable-diffusion/issues/302
- wincy 4y agoyou can also just change the python version in the yml file to 3.10.4 and it'll work