JARVIS icon indicating copy to clipboard operation
JARVIS copied to clipboard

Starting server no module named 'diffusers'

Open Sutek484 opened this issue 2 years ago • 2 comments

A similar error on both (base) root@ubuntu:/JARVIS/server# python models_server.py --config config.yaml Traceback (most recent call last): File "/JARVIS/server/models_server.py", line 7, in from diffusers import DiffusionPipeline, StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler ModuleNotFoundError: No module named 'diffusers'

(base) root@ubuntu:/JARVIS/server# python awesome_chat.py --config config.yaml --mode cli Traceback (most recent call last): File "/JARVIS/server/awesome_chat.py", line 17, in from diffusers.utils import load_image ModuleNotFoundError: No module named 'diffusers'

if anyone could help it would be awesome

Sutek484 avatar Apr 17 '23 13:04 Sutek484

I had this problem when I didn't activate the conda instance first. Since it takes multiple processes to run, each one needs to use the conda instance (except web).

kevinkemp avatar Apr 17 '23 15:04 kevinkemp

first : pip install diffusers

then for the load_image here the code:

def load_image(file_path): image = Image.open(file_path) return image

kenyhenry avatar May 11 '23 13:05 kenyhenry