improved-diffusion icon indicating copy to clipboard operation
improved-diffusion copied to clipboard

Problem with training one's own dataset

Open liuyisu opened this issue 1 year ago • 2 comments

What should we do if this problem occurs ModuleNotFoundError: No module named 'improved_diffusion'

liuyisu avatar Jan 09 '24 05:01 liuyisu

There are two possibilities, according to what happened to me:

  1. The first is to ensure that MPI is installed https://www.microsoft.com/en-us/download/details.aspx?id=105289
  2. The second is that the path is inside the "improved_diffusion" file After setting the parameters, use the following command inside the terminal in the path above python scripts/image_train.py --data_dir path/to/images $MODEL_FLAGS $DIFFUSION_FLAGS $TRAIN_FLAGS Make sure to check the image file path "--data_dir path/to/images"

ali-alhwayzee avatar May 15 '24 19:05 ali-alhwayzee

Just add the working dir to python environment variable as the following: export PYTHONPATH=$PYTHONPATH:/path/to/guided-diffusion hopefully this will help.

PandragonXIII avatar Sep 09 '24 06:09 PandragonXIII