Giter Club home page Giter Club logo

Comments (4)

0merjavaid avatar 0merjavaid commented on July 27, 2024 5

Resolved by changing these 3 lines
From this:
model = Darknet(opt.model_config_path)
#model.load_weights(opt.weights_path)
model.apply(weights_init_normal)
To this :
model = Darknet(opt.model_config_path)
model.load_weights(opt.weights_path)
#model.apply(weights_init_normal)

from pytorch-yolov3.

lupotto avatar lupotto commented on July 27, 2024 1

@0merjavaid my problem is with both (testing & detection), I lowered the conf_thres and had mAP 0 again.

from pytorch-yolov3.

lupotto avatar lupotto commented on July 27, 2024

@0merjavaid I am facing the same problem.

In #16 I tried to train with my own dataset, but I thought that it was training well. When I tested and detect I realized that any detections were made and mAP 0.

As you commented above I changed de configuration files, I am trying to train with 6 objects so I changed:

  • coco.names: from 80 objects to 6.
  • yolov3.cfg: changing classes 80 to 6 and filters 255 to 33.
  • coco.data: linking to my images in the .txt file and changing the classes as well
  • labels in the same format as commented.

I tried to train with coco dataset, then load the weights of my training and testing & detection worked well.

I don't know why is not working with my own dataset, I debugged the code and in training is predicting well (I printed the value when iou > 0.5), I think maybe is a problem saving the weights?

I would appreciate any insight in that, sorry for reopen the problem but I am stuck with that.

Thank you in advance.

ps: @eriklindernoren I am developing the clustering for adapting the anchors to any dataset, if you think is interesting we can add it to the repo.

from pytorch-yolov3.

0merjavaid avatar 0merjavaid commented on July 27, 2024

@lupotto first of all the weights saving is alright. i used my trained model and it worked fine.
till now i haven't ran testing script. is your problem with the testing or detection as well?
btw you should also try lowering the --conf_thres while testing. if during training it was 0.8 then try 0.5 or 0.6

from pytorch-yolov3.

Related Issues (20)

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.