Skip to content

AttributeError: type object 'CTLModel' has no attribute '_load_model_state' #14

Description

@real-wind

Thank you for the hardwork and sharing of your code, I have encountered some issues while attempting to replicate the results for the PRCC dataset with the CTL model.
I executed the inference script:
python /GEFF/Scripts/inference.py prcc CTL --reid_config /GEFF/ReIDModules/centroids_reid/configs/256_resnet50.yml --dataset_path /GEFF/datasets/prcc --device "cuda:0" --reid_checkpoint GEFF/checkpoints/CTL/dukemtmcreid_resnet50_256_128_epoch_120.ckpt --alpha 0.75 --detection_threshold 0.7
Actual Results:
Setting seed to: 0
Traceback (most recent call last):
File "/GEFF/Scripts/inference.py", line 472, in
main(args)
File "/GEFF/Scripts/inference.py", line 467, in main
run_inference(args, config=config)
File "/GEFF/Scripts/inference.py", line 399, in run_inference
qd_pids, qd_camids, qd_clothes_ids, g_pids, g_camids, g_clothes_ids = reid_inference_on_prcc(args, config)
File "/GEFF/Scripts/inference.py", line 184, in reid_inference_on_prcc
reid_model.init_model(config, args.reid_checkpoint)
File "/GEFF/./ReIDModules/CTL_model.py", line 17, in init_model
self.model = CTL._load_model_state(checkpoint)
AttributeError: type object 'CTLModel' has no attribute '_load_model_state'

I have double-checked the steps and parameters, but I still face difficulties .Any guidance on how to proceed or troubleshoot this issue would be greatly appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions