Closed skye95git closed 4 years ago
Do I need to register the dataset as If I were training a custom dataset?
yes
Can I get an AP by running the above command directly?
No. the pre-trained model will produce more classes and even if "car" is among them, it won't have the same id as in your dataset.
There is no such feature to automatically evaluate model of one dataset on another dataset. Maybe something like the following will work:
def new_model(inputs):
outputs = model(inputs)
# .. filter outputs, keep only cars, change its class ids
return new_outputs
❓ How to do something using detectron2
Describe what you want to do, including:
❓ What does an API do and how to use it?
Please link to which API or documentation you're asking about from https://detectron2.readthedocs.io/
NOTE:
Only general answers are provided. If you want to ask about "why X did not work", please use the Unexpected behaviors issue template.
About how to implement new models / new dataloader / new training logic, etc., check documentation first.
We do not answer general machine learning / computer vision questions that are not specific to detectron2, such as how a model works, how to improve your training/make it converge, or what algorithm/methods can be used to achieve X.