Skip to content

Class weight does not work. Accuracy and loss remain same #9

@vzhencheng97

Description

@vzhencheng97

i use the code and train on dataset from https://github.com/yhlleo/DeepCrack. The images changed to binary images. For the code I just changed the path and the label from 12 to 2 which are crack and background for all the py file. But it seems the class weight is not working.The changes i made are all the value 12 to 2 and the path to my dataset. Full code and dataset can be found at https://drive.google.com/open?id=1wK-non5bMkpApMshtCHXIqLXZOJ9jUxU.
I have been working on this problem for a long time and didn't found any workable solution online. I am desperate for help. So can you help me find the problem or at least give some possible causes that cause the problem of the class weighting not working on the fit generator. I changed the value for the class weight but still the accuracy the same. Changing the optimizer or learning rate also gives the same accuracy. The accuracy is the same for the first epoch which is 95.67%, changing the class weight did not affect it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions