leondgarse / Keras_insightface

Insightface Keras implementation
MIT License
235 stars 56 forks source link

how can I solve this example error #46

Closed RFTFT closed 3 years ago

RFTFT commented 3 years ago

Screenshot from 2021-08-30 21-44-08

Screenshot from 2021-08-30 21-42-09

leondgarse commented 3 years ago

It seems like complaining your dataset_params is None, you can print it out to say what happens to it. That error line should be train.py#L157. maybe you changed something?

RFTFT commented 3 years ago

Screenshot from 2021-09-01 22-44-31

sorry, I clone this repo and did not change anything

leondgarse commented 3 years ago

Can you share more detail on your training script and error logs after clone? It's such a basic functional error that shouldn't happen, and I'm using this project every day...

leondgarse commented 3 years ago

I've tested on colab, and it should work fine: Selection_400

Also, I changed centerloss calculation from reduce_mean to reduce_sum long ago, means it's enlarged by multiply with batch_size. So should use something like "centerloss": 0.01 "centerloss": 0.1.

RFTFT commented 3 years ago

This is my code

Screenshot from 2021-09-04 18-10-51

RFTFT commented 3 years ago

This is my error log and I print dataset_params Screenshot from 2021-09-04 18-14-15

leondgarse commented 3 years ago

I think it's data.prepare_dataset returned None. I just added more log info in this process. This could happen if your data_path directory is not exists, or it's empty. Besides, may also remove the cache file [data_path]_shuffle.npz to try again.

RFTFT commented 3 years ago

Thank you for your help I found that my datasets folder name was different