diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

raise the problem No module named 'exceptions' When train the model

Open Lynex-01 opened this issue 3 years ago • 4 comments

Traceback (most recent call last): File "scripts/train.py", line 1, in import diffuser.utils as utils File "/mnt/d/RL/UCSC/diffuser/diffuser/utils/init.py", line 4, in from .setup import * File "/mnt/d/RL/UCSC/diffuser/diffuser/utils/setup.py", line 6, in from tap import Tap File "/home/lyn/anaconda3/envs/diffuser/lib/python3.8/site-packages/tap.py", line 6, in from mc_bin_client import mc_bin_client, memcacheConstants as Constants File "/home/lyn/anaconda3/envs/diffuser/lib/python3.8/site-packages/mc_bin_client/mc_bin_client.py", line 11, in import exceptions ModuleNotFoundError: No module named 'exceptions'

Lynex-01 avatar Jul 21 '22 15:07 Lynex-01

can't solve by pip install python-docs

Lynex-01 avatar Jul 21 '22 15:07 Lynex-01

Hey @Lyn-Qiu,

How exactly did you install diffusers and what command did you use exactly to train the model? It would be great if we could somehow reproduce the error. Also cc @anton-l as it seems related to training

patrickvonplaten avatar Jul 21 '22 19:07 patrickvonplaten

Hi @Lyn-Qiu! Judging by the stack trace, you're using something other than diffusers to run your training script, could this be a typo during installation? :slightly_smiling_face:

anton-l avatar Jul 22 '22 11:07 anton-l

yeah I didn't install by environment.yml, but choose to pip install some basic package (einops pillow tqdm pandas wandb and soon) and try run the code to see what packages are missing,then face this problem

Lynex-01 avatar Jul 22 '22 16:07 Lynex-01

Hey @Lyn-Qiu,

Sorry we need better error messages here to understand what's going on - is this related to diffusers? Sorry I'm not really following the problem here

patrickvonplaten avatar Aug 23 '22 12:08 patrickvonplaten

Closing due to inactivity

patrickvonplaten avatar Sep 13 '22 15:09 patrickvonplaten