deep-diver / Soccer-Ball-Detection-YOLOv2

YOLOv2 trained against custom dataset
118 stars 43 forks source link

Image size and Input size mismatch #24

Open amitkayal opened 4 years ago

amitkayal commented 4 years ago

I see that image size has been defined as (608, 608, 3) but all the images under images folder of size 1920x1920. Dont you need to resize or change the image size in yolo_custom.cfg file?

I have looked into annotation file and size is not 608x608 as what is defined in yolo_custom.cfg file

<size>
    <width>1920</width>
    <height>1090</height>
    <depth>3</depth>
Ign0reLee commented 4 years ago

Hi, @amitkayal

In my memory, you don't need to change your data.

because in original code, defined resized layer.

you can look here about original code

In this code : https://github.com/thtrieu/darkflow/blob/master/darkflow/net/build.py

First, run code and if takes mismatched error, open the issue again please