ldm.modules.encoders.modules import BERTTokenizer ModuleNotFoundError
Anyone know how to fix this?
Traceback (most recent call last):
File ".\scripts\merge_embeddings.py", line 1, in <module>
from ldm.modules.encoders.modules import BERTTokenizer
ModuleNotFoundError: No module named 'ldm'
Gone as far as wiping out my environment and recreating it from scratch. Even tried reinstalling Anaconda. Intellisense resolves it in VSCode, but python can't at execution when trying to run merge_embeddings.py
It's likely due to a mismatched library in my environment. Will have to do some digging and see if I can figure it out. I'll share details if I find anything useful.
Turns out the solution was to fix the merge_embeddings script. See PR https://github.com/lstein/stable-diffusion/pull/226