Skip to content

ModuleNotFoundError for unet_edited in guided_diffusion/script_util.py #9

Description

@wwqqq16

Environment:
Operating System: macOS
Steps to Reproduce:
Clone the GESCO-main repository.
Navigate to the repository directory.
Run the command python image_train.py --data_dir ./data --dataset_mode cityscapes... (other flags)
Expected Behavior:
The script should run without any issues.

Actual Behavior:
Received a ModuleNotFoundError for guided_diffusion.unet_edited.

Traceback (most recent call last):
File "/Users/wweng/Desktop/GESCO-main/image_train.py", line 11, in
from guided_diffusion.script_util import (
File "/Users/wweng/Desktop/GESCO-main/guided_diffusion/script_util.py", line 7, in
from .unet_edited import UNetModelSPADE, UNetModelEncOnly
ModuleNotFoundError: No module named 'guided_diffusion.unet_edited'

Additional Information:
Upon inspecting the guided_diffusion directory, the following modules were found:

init.py
fp16_util.py
gaussian_diffusion.py
image_datasets.py
losses.py
nn.py
resample.py
respace.py
script_util.py
train_util.py
unet.py
The module unet_edited is not present, causing the ModuleNotFoundError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions