NSTiwari / YOLOv3-Custom-Object-Detection

An E2E tutorial on custom object detection using YOLOv3 with Transfer Learning on Google Colab.
21 stars 18 forks source link

yolo v3 custom object detection #1

Open Areej25890 opened 2 years ago

Areej25890 commented 2 years ago

I have done every thing in the pdf but after training only classes.txt and testing.cfg files were generated. I mean the problem is that weights file after training wasn't generated. How can I solve this problem.

NSTiwari commented 2 years ago

@Areej25890, check if the train.txt file is empty or not. If it's empty, then the training probably didn't start; no .weights file will be generated thereby.

Areej25890 commented 2 years ago

Yes. I found it empty and I have fixed it but I have another issue when I try to test it using object detection code I got the following error: Index 1135 is out of bounds for axis 0 with size 100. What is the problem?. Thank you


From: Nitin Tiwari @.> Sent: Saturday, September 18, 2021 12:32 PM To: NSTiwari/YOLOv3-Custom-Object-Detection @.> Cc: اريج ناصر ابراهيم ابوقرين @.>; Mention @.> Subject: Re: [NSTiwari/YOLOv3-Custom-Object-Detection] yolo v3 custom object detection (#1)

@Areej25890https://github.com/Areej25890, check if the train.txt file is empty or not. If it's empty, then the training probably didn't start; no .weights file will be generated thereby.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/NSTiwari/YOLOv3-Custom-Object-Detection/issues/1#issuecomment-922255859, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APAC2DSQVR3D4GJ2XCI6W3TUCRTC7ANCNFSM5EI4JMYA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Maharshi-joshi commented 2 years ago

Hey @NSTiwari , could you help me solve this query:

yolo] params: iou loss: mse (2), iou_norm: 0.75, obj_norm: 1.00, cls_norm: 1.00, delta_norm: 1.00, scale_x_y: 1.00 Total BFLOPS 65.312 avg_outputs = 516922 Allocate additional workspace_size = 12.46 MB Loading weights from darknet53.conv.74... seen 64, trained: 0 K-images (0 Kilo-batches_64) Done! Loaded 75 layers from weights-file Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005 Detection layer: 82 - type = 28 Detection layer: 94 - type = 28 Detection layer: 106 - type = 28 If error occurs - run training with flag: -dont_show Unable to init server: Could not connect: Connection refused

(chart_yolov3_training.png:1513): Gtk-WARNING **: 07:03:54.744: cannot open display:

This happens when I try to train the model at the last step.