gjy3035 / GCC-SFCN

This is the official code of spatial FCN in the paper Learning from Synthetic Data for Crowd Counting in the Wild [CVPR2019].

Home Page:https://gjy3035.github.io/GCC-CL/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where Can I Find PreTrain model for "CrowdCounter"

SJLNNU opened this issue · comments

Hi ,
I am using test.py with (torch 1.0 python 3.5.4 ),after i changed the model path to downloaded "Pretrained_GCC.pth" .It seems this pth's state_dict mismatchs CrowdCounter. Where Can I find the right pretrain pth for CrowdCounter? or Did i miss things?Please let me know.

@Yellow-Champagne Hi ,Sorry for the misunderstanding . The PreTrain model i mean is not the 'resnet101-5d3b4d8f.pth' loaded in resSFCN.py . But the model loaded in test.py Line 36 .
And I write a test code to test 'Pretrained_GCC.pth' I downloaded form the Link in README -[Data preparation] .
——————————————————————————————

model_path='Pretrained_GCC.pth'
net = CrowdCounter()
net.load_state_dict(torch.load(model_path))


And it goes mismatch . I cant open any file i downloaded from the Link,So it must be file problem .If you have the right file please Email me .
Thank you for your time .

  1. I check the link of Pretrained_GCC.pth, and it is ok. I think you may need VPN to visit it.
  2. About mismatching problem, please post the details error information. You would see #8.

Thanks , I have succeeded. The Same problem in #8 .I am closing it .