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

Cannot detect anything #126

Open
1726400669 opened this issue Dec 15, 2019 · 3 comments
Open

Cannot detect anything #126

1726400669 opened this issue Dec 15, 2019 · 3 comments
Labels
inference training Training Related Questions

Comments

@1726400669
Copy link

After I made my dataset and trained for 50 epochs with 1 class, I couldn't detect anything. I have changed the classes of detect.py to mine, weights to ./checkpoints/yolov3_train_50.tf, image to mine, and num_classes to 1, but the detection results are all 0 and lots of Warning like #108 .

This is where I modify train.py
BaiduShurufa_2019-12-15_11-56-51

and This is where I modify model.py:
BaiduShurufa_2019-12-15_11-55-15

Thanks.

@zzh8829
Copy link
Owner

zzh8829 commented Dec 18, 2019

have you tried training using eager mode does it work?

@zzh8829 zzh8829 added inference training Training Related Questions labels Dec 20, 2019
@zzh8829
Copy link
Owner

zzh8829 commented Dec 21, 2019

I made a tutorial on training from scratch.
https://github.com/zzh8829/yolov3-tf2/blob/master/docs/training_voc.md
let me know if this helps you, in my experience training without transfer learning from darknet is almost impossible

@kalikhademi
Copy link

Hi everyone,
I used the instructions on the tutorial in this repo to train it on my custom pictures. I converted the darknet weight using convert.py and then used the eager_fit mode and transfer learning using this command:
python train.py --dataset ./data/Ortho_Dataset/ortho_train.tfrecord --val_dataset ./data/Ortho_Dataset/ortho_valid.tfrecord --classes ./data/obj.names --num_classes 1 --mode eager_fit --transfer darknet --batch_size 16 --epochs 10 --weights ./checkpoints/yolov3.tf --weights_num_classes 80

The training results are shown in this picture.

Screen Shot 2021-06-29 at 9 18 27 AM

Although I donot encounter any problem when doing my taining, the model cannot detect anything from yolov3 and it returns zero and no detections. Refer to the following pic:
Screen Shot 2021-06-29 at 9 18 41 AM

Does anyone have any idea what could be the problem?

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inference training Training Related Questions
Projects
None yet
Development

No branches or pull requests

3 participants