Closed infrontofme closed 4 years ago
Which script did you use to get the predictions for the image you posted?
The following command should work (you need to change the weights path and the image path):
python2 detect.py cfg/darknet_dynamic.cfg cfg/reweighting_net.cfg backup/metatunetest15_novel0_neg0/000010.weights image_test.jpg
@christegho
python2 detect.py cfg/darknet_dynamic.cfg cfg/reweighting_net.cfg backup/metatunetest15_novel0_neg0/000010.weights image_test.jpg
This script doesn't work, the model in detect.py
can't take cfg/reweightng_net
as an input parameter.
I use the following script, but the result is worse.
python2 detect.py cfg/darknet_dynamic.cfg backup/metatunetest15_novel0_neg0/000010.weights image_test.jpg
before tested on images, do I need to generate reweighting vectors using training images ?
detect.py will not work as you rightly mentioned @infrontofme
You will have to follow some methodology similar to valid_ensemble.py:
model.meta_forward()
model.detect_forward()
get_region_boxes()
@kshitijagrwl Thanks, I get it now.
Hi, I've trained the model following the instructions, after finetuning on novel classes, the AP results are as follows:
Then, I want to make predictions using pre-trained weights, but I found it in darknet_dynamic.cfg,
classes=1
. I modifyclasses=20
during inference in order to make predictions on VOC. but the result is worse.how can I use pre-trained weight to make the right predictions?
thanks:)