Can I use a pretrained classifier for object detection / instance segmentation #2513
Unanswered
umerhasan17
asked this question in
Q&A
Replies: 2 comments
-
Where is your trained model coming from? If you made your own config file with which you trained your model, you can do the following: cfg.merge_from_file("path to config file")
cfg.MODEL.WEIGHTS = "path to .pth file" |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jdegeus Thank you for your reply. I didn't use detectron2 but I did use pytorch. Do you think it might be possible to use this straight out of the box as I have the This is the code:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I finetuned a pre-trained ResNet classifier and feel as if that will add some meaningful value to my object detection task which is very similar. I would like to use that
pth
file as the model being trained in detectron2 and compare the results. At the moment, I can only figure out how to use models already in the model zoo. I was wondering how I could use my custom models. I would also be happy to contribute this extra information to the documentation as I wasn't able to find a clear method.I am currently using the example below, and I would just like to change the first line to use my model (likely means changing the 3rd line). Are there any limitations to consider when selecting which type of model it should be?
Beta Was this translation helpful? Give feedback.
All reactions