Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with training one's own dataset #122

Open
liuyisu opened this issue Jan 9, 2024 · 2 comments
Open

Problem with training one's own dataset #122

liuyisu opened this issue Jan 9, 2024 · 2 comments

Comments

@liuyisu
Copy link

liuyisu commented Jan 9, 2024

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

@ali-alhwayzee
Copy link

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"

@PandragonXIII
Copy link

PandragonXIII commented Sep 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants