Closed mcdulltii closed 5 months ago
For anyone with a custom dataset that wishes to use the model for inference, refer to the eval_single_dataset()
function in src/models/eval.py
. The true labels, inference logits can be found in all_labels
and all_preds
(Line 31) respectively, whereas the predicted label for every image in the dataset can be found in pred
(Line 50). Extract them after running the function on the custom dataset for any post visualizations/processings.
May I know the way to use the
.pt
files after finetuning is performed on a dataset? I would like to load the.pt
file and run inference on a single image, then print out the classification result from it, i.e. the classname.Below is the command and output of my finetuning.