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

runing test.py encounter AssertionError #56

Open
LeviArckman opened this issue Jul 8, 2024 · 1 comment
Open

runing test.py encounter AssertionError #56

LeviArckman opened this issue Jul 8, 2024 · 1 comment

Comments

@LeviArckman
Copy link

image
what's wrong?

@wdcww
Copy link

wdcww commented Nov 15, 2024

In the example in the readme, the number of gt images must be equal to the number of mask images.

If you feel this is too troublesome, you can modify the logic in guided_diffusion/image_datasets.py.
For example:
I added the following code to this line, so that many gt images use the only mask image

# If there is only one mask image, reuse it
    if len(mask_paths) == 1 and len(gt_paths) > 1:
        mask_paths = [mask_paths[0]] * len(gt_paths)

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

2 participants