Closed shamilnabiyev closed 1 year ago
If you want to infer, you could mainly utilize the eval() function in ./tools/trainval.py by the following steps:
(1) Remove the codes about "density" in ./datasets/customdataset.py.
(2) Remove the codes about "density", "MAE", and "RMSE" in eval() function of _./tools/trainval.py.
(3) Create your own dataset about inference, i.e., create a json file like example (but with no need of "density").
(4) Revise config.yaml to use your own dataset, and run python ./tools/train_val.py -e
.
Thank you for your suggestion
Hi @zhiyuanyou Thanks for publishing such an amazing tool. I'm wondering, if it's possible to use pre-trained models (without fine-tuning) for object counting on custom dataset. May I ask you to give some hints for creating a simple demo script for such use cases?