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

Issue with Assertion Error in Label Generation #13

Open
honeius opened this issue Sep 7, 2024 · 0 comments
Open

Issue with Assertion Error in Label Generation #13

honeius opened this issue Sep 7, 2024 · 0 comments

Comments

@honeius
Copy link

honeius commented Sep 7, 2024

Dear developers,

First, thank you for your hard work and for making this project available. I greatly appreciate your contributions.

I am currently working with your CcGAN implementation for a custom dataset . While the example provided works smoothly, I encountered an issue when applying my dataset. Specifically, I am facing an AssertionError during the label generation process (run_gene.sh). Here is a brief overview of the situation:

  1. Problem Description:
    The error occurs in the label generation part, where the following assertion fails:

Traceback (most recent call last):
  File "/path/to/main.py", line 780, in <module>
    assert fake_labels.max()>1
AssertionError

I reviewed the some functions to ensure the labels are generated correctly, but I haven't found any clear reason why the labels are failing the condition.

  1. Dataset and Label Information:

The labels range from:


1963 images left and there are 80 unique labels

 Range of unnormalized labels: (0.009999999776482582,0.8100000023841858)
 Range of normalized labels: (0.02439024329300724,1.0)
 There are 80 unique labels.

The label generation logic seems to apply correctly based on the raw dataset, but the normalized or generated fake_labels do not meet the condition.

Would you be able to provide some guidance on why the fake_labels might not be reaching the expected range, and how I can resolve this AssertionError?

Thank you for your time and 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

1 participant