face_classification icon indicating copy to clipboard operation
face_classification copied to clipboard

This training module has a BUG.

Open wotchin opened this issue 7 years ago • 0 comments

The file "utils/data_augmentation.py" has a bug,so if you want to train the model(I only tested the gender part),you will get an exception:

ValueError: No data provided for "image_array_input". Need data for each key in: ['image_array_input']

How to solve this issue? I changed the code in the "data_augmentation.py" file:

change

    def _wrap_in_dictionary(self, image_array, targets):
        return [{'input_1':image_array},
{'predictions':targets}]

to

    def _wrap_in_dictionary(self, image_array, targets):
        return [{'image_array_input':image_array},
                {'predictions':targets}]

wotchin avatar Apr 08 '18 09:04 wotchin