Event-AHU / OpenPAR

[OpenPAR] An open-source framework for Pedestrian Attribute Recognition, based on PyTorch
MIT License
85 stars 11 forks source link

Requesting Google Drive Download link for pre-trained models #25

Closed Nouman945 closed 2 months ago

Nouman945 commented 3 months ago

Hi, I tried to download the checkpoints from the baidu drive here,

https://pan.baidu.com/s/196CDyMFX5rrMQEcC4kQ00w#list/path=%2FPromptPAR_ckpts

But I wasn't able to do so. It's even not allowing to create a new account probably because of my location. Can you please provide a Google Drive link to download the model files please. I want to test the model

1125178969 commented 3 months ago

Thanks for following our work, we've just updated the Google Drive link!

Nouman945 commented 3 months ago

Thanks for following our work, we've just updated the Google Drive link!

Hi, Thanks for sharing the checkpoint file I really appreciate it. I am trying to run the test_example.py and there are issues with a imports. specifically.


1.  from models.test_base import * 

file test_base is not present in the models directory. 

2.  https://github.com/Event-AHU/OpenPAR/blob/84219633bc0b067e1f36a744b552a7cdbeb2def6/PromptPAR/test_example.py#L49C13-L49C34

TransformerClassifier is not imported.

3. https://github.com/Event-AHU/OpenPAR/blob/84219633bc0b067e1f36a744b552a7cdbeb2def6/PromptPAR/test_example.py#L19

from CLIP.clip import clip
from CLIP.clip.model import *

The import for clip needs to be fixed.

4. https://github.com/Event-AHU/OpenPAR/blob/84219633bc0b067e1f36a744b552a7cdbeb2def6/PromptPAR/test_example.py#L10

from eval_batch import valid_trainer

Issue with Import. No file present with name eval_batch

5. https://github.com/Event-AHU/OpenPAR/blob/84219633bc0b067e1f36a744b552a7cdbeb2def6/PromptPAR/test_example.py#L48

build_model is also not imported.
1125178969 commented 3 months ago

The test_example.py uploaded at the time was just an example used to demonstrate loading the model, we've updated it now.

Nouman945 commented 3 months ago

Thankyou @1125178969. Working now. Do you have a sample script to test the model on a single image? And are there any specific instructions to get this file?

FileNotFoundError: [Errno 2] No such file or directory: '/data/jinjiandong/datasets/PETA/pad.pkl'
1125178969 commented 3 months ago

You can use ‘. /dataset/preprocess’ in peta_pad.py to generate the pkl file

Nouman945 commented 3 months ago

That file is giving this error.

FileNotFoundError: [Errno 2] No such file or directory: '/data/jinjiandong/datasets/PETA/PETA.mat'
Nouman945 commented 3 months ago

@1125178969 can we connect?

1125178969 commented 3 months ago

You can give me your email and I'll send it to you.

Nouman945 commented 3 months ago

You can give me your email and I'll send it to you.

Thankyou.

Herry-CN commented 3 months ago

我是一位PAR的爱好者,我也需要一份.mat文件。12912697@qq.com