FewX icon indicating copy to clipboard operation
FewX copied to clipboard

Predict on new images

Open billsun9 opened this issue 4 years ago • 10 comments

Hello,

Given the provided model (model_final.pth), how would I predict on new images?

billsun9 avatar Dec 01 '20 03:12 billsun9

I would also like to know the answer to this

kushalchordiya216 avatar Dec 02 '20 18:12 kushalchordiya216

I also have the question, could anyone answer please?

xuecho avatar Dec 04 '20 06:12 xuecho

I am looking forward to using this model to train my own dataset and predict the unseen categories without fine-tuning!

hellollw avatar Dec 15 '20 02:12 hellollw

Dear all,

I have figured out how to predict on new images by reading the Detectron2 documentation. Essentially, you need to run demo.py from detectron2 https://github.com/facebookresearch/detectron2 after altering the configuration files to account for FewX.

@hellollw I believe you can write a training script by following detectron2 as well

Here is an example prediction from the model provided: image

billsun9 avatar Dec 15 '20 05:12 billsun9

Dear all,

I have figured out how to predict on new images by reading the Detectron2 documentation. Essentially, you need to run demo.py from detectron2 https://github.com/facebookresearch/detectron2 after altering the configuration files to account for FewX.

@hellollw I believe you can write a training script by following detectron2 as well

Here is an example prediction from the model provided: image

Oh, your answer is very helpful to me! So I just need to first train the FewX model using the given code, and then run the demo.py after altering the model path? But if I want to train the model with my own dataset, should I alter FewX code or just use the detectron2 code?

hellollw avatar Dec 15 '20 05:12 hellollw

Dear all,

I have figured out how to predict on new images by reading the Detectron2 documentation. Essentially, you need to run demo.py from detectron2 https://github.com/facebookresearch/detectron2 after altering the configuration files to account for FewX.

@hellollw I believe you can write a training script by following detectron2 as well

Here is an example prediction from the model provided: image

I tried running inference using the model_final.pth provided in this repo the inference runs fine. but when i try with the intermediate saved model saved during my training on coco2017, i am getting blank predictions. The .pth i tried are: model_0029999.pth, model_0059999.pth. Could you please help what could be the issue?

Mas-Y avatar Mar 01 '21 08:03 Mas-Y

@billsun9 how exactly did you alter the config to train with demo.py?

Also did you manage to actually test the few-shot capability on unseen categories? I do not understand how exactly to give the model support images and then query images to detect the new objects

Help would be really appreciated

selimlouis avatar Jul 08 '21 09:07 selimlouis

i try to use the model test the image given,but how we write a ".yml" file to inference new images?

xiaofeng-c avatar Sep 03 '21 01:09 xiaofeng-c

Dear all,

I have figured out how to predict on new images by reading the Detectron2 documentation. Essentially, you need to run demo.py from detectron2 https://github.com/facebookresearch/detectron2 after altering the configuration files to account for FewX.

@hellollw I believe you can write a training script by following detectron2 as well

Here is an example prediction from the model provided: image

hello !can you tell me how to modify the config file ? thank you

pcyyo avatar Sep 13 '21 09:09 pcyyo

Dear all,

I have figured out how to predict on new images by reading the Detectron2 documentation. Essentially, you need to run demo.py from detectron2 https://github.com/facebookresearch/detectron2 after altering the configuration files to account for FewX.

@hellollw I believe you can write a training script by following detectron2 as well

Here is an example prediction from the model provided: image

Please tell me how you debug it? If you can, please send me the code. My email is [email protected]

Lei-1998 avatar Nov 19 '21 12:11 Lei-1998