Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help me on how to use the pretrained checkpoint for detection #128

Open
AnishMathewOommen opened this issue Dec 31, 2024 · 4 comments
Open

Comments

@AnishMathewOommen
Copy link

AnishMathewOommen commented Dec 31, 2024

models
Let's say I downloaded the D-FINE-M whose checkpoint file(37.4) how to use it for prediction of objects in an image and get the detections.

Please help on
After downloading the model, how to directly load and find the inference or prediction

@GiovanniFyc
Copy link
Contributor

@AnishMathewOommen
Copy link
Author

AnishMathewOommen commented Dec 31, 2024

@GiovanniFyc. Thank you so much for your reply. Could you please tell me how to feed the downloaded model file to the code?

And also which config file I have to pass as argument

python3 torch_inf.py -r /home/anish/Downloads/dfine_m_obj365.pth -i /home/anish/Downloads/2.jpeg -d cuda
2024-12-31 14:47:40.845093: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-12-31 14:47:40.871767: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
usage: torch_inf.py [-h] -c CONFIG -r RESUME -i INPUT [-d DEVICE]
torch_inf.py: error: the following arguments are required: -c/--config

@GiovanniFyc
Copy link
Contributor

the following arguments are required: -c/--config,you should download the yaml config,and add -c config_path

@AnishMathewOommen
Copy link
Author

Thank you so much @GiovanniFyc . It is working for me now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants