Code Monkey home page Code Monkey logo

Comments (6)

HonestyBrave avatar HonestyBrave commented on June 17, 2024 1

OK, I have understood, thank you very much!

from yolo_v1_pytorch.

motokimura avatar motokimura commented on June 17, 2024

Hi, It should be 1,000.

After pre-trained Darknet on ImageNet (with 1,000 classes), only the convolution layers (layers except for the FC-layer) are passed to YOLO model as you can see in the implementation below.

yolo = YOLOv1(darknet.features)

In YOLO model, a new FC-layer is defined and it has 20 classes.

from yolo_v1_pytorch.

HonestyBrave avatar HonestyBrave commented on June 17, 2024

Hi, It should be 1,000.

After pre-trained Darknet on ImageNet (with 1,000 classes), only the convolution layers (layers except for the FC-layer) are passed to YOLO model as you can see in the implementation below.

yolo = YOLOv1(darknet.features)

In YOLO model, a new FC-layer is defined and it has 20 classes.

from yolo_v1_pytorch.

HonestyBrave avatar HonestyBrave commented on June 17, 2024

Hi, thank you very much,
it's me didn't understand completely, I print the model. features find is only have convolution layers, thank you!

from yolo_v1_pytorch.

HonestyBrave avatar HonestyBrave commented on June 17, 2024

But I confusion, when we training the model in VOC data sets, using the "train_darknet.py", the function of "_make_fc_layers" in "darknet.py" shouldn't change to 20? (because I understand, we training in VOC data sets, not in ImageNet data sets, that only 20 classes, not 1000), it's somewhere I didn't understand? could you give me a more explanation? thank you

from yolo_v1_pytorch.

motokimura avatar motokimura commented on June 17, 2024

train_darknet.py has nothing to with VOC. It should run with ImageNet dataset because Darknet is firstly pre-trained on ImageNet as written in the original YOLO paper.

After pre-trained Darket on ImageNet, its feature extraction part (convolution layers) and YOLO head FC-layer are further fine-tuned on VOC dataset.

Maybe I should have prepared README explaining the procedure but I did not have enough time..

from yolo_v1_pytorch.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.