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

When I used my own dataset, I encounted an error! #35

Open
Antyaoyao opened this issue Apr 3, 2019 · 3 comments
Open

When I used my own dataset, I encounted an error! #35

Antyaoyao opened this issue Apr 3, 2019 · 3 comments

Comments

@Antyaoyao
Copy link

When I used my own dataset, I encounted an error!
My dataset contains 3 num_classes. But after I finished training my own dataset and used my trained model to predict test_images ( including 3 classes ), I just got a 2-classes segmentations.
Please, thx!

@white0dew
Copy link

maybe you should change the parameter in the codes。

@burhr2
Copy link

burhr2 commented Apr 22, 2019

hi i have an issue also trying my own, i have a two class dataset here is what i am getting. How did you train yours

File "train_enet.py", line 94, in
class_weights = median_frequency_balancing()
File "C:\Users\User\anaconda project directory\computer vision\Deep learning\semantic segmentation\TensorFlow-ENetV1\get_class_weights.py", line 94, in median_frequency_balancing
total_frequency = sum(j) / total_pixels
ZeroDivisionError: division by zero

@x7hkvip
Copy link

x7hkvip commented May 15, 2019

check out get_class_weights.py,the code assigned weight equals 0 for last class,maybe your back ground class is 0(first one),not the last?

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

4 participants