Closed jerryum closed 9 months ago
I changed the attributes like below - same as the list from peta_pad.py and got a successful outcome.. Also, had to deal with several minor issues... FYI.
attributes = [
'A pedestrian wearing a hat', 'A pedestrian wearing a muffler', 'A pedestrian with no headwear', 'A pedestrian wearing sunglasses', 'A pedestrian with long hair',
'A pedestrian in casual upper wear', 'A pedestrian in formal upper wear', 'A pedestrian in a jacket', 'A pedestrian in upper wear with a logo', 'A pedestrian in plaid upper wear',
'A pedestrian in a short-sleeved top', 'A pedestrian in upper wear with thin stripes', 'A pedestrian in a t-shirt', 'A pedestrian in other upper wear', 'A pedestrian in upper wear with a V-neck',
'A pedestrian in casual lower wear', 'A pedestrian in formal lower wear', 'A pedestrian in jeans', 'A pedestrian in shorts', 'A pedestrian in a short skirt', 'A pedestrian in trousers',
'A pedestrian in leather shoes', 'A pedestrian in sandals', 'A pedestrian in other types of shoes', 'A pedestrian in sneakers',
'A pedestrian with a backpack', 'A pedestrian with other types of attachments', 'A pedestrian with a messenger bag', 'A pedestrian with no attachments', 'A pedestrian with plastic bags',
'A pedestrian under the age of 30', 'A pedestrian between the ages of 30 and 45', 'A pedestrian between the ages of 45 and 60', 'A pedestrian over the age of 60',
'A male pedestrian'
]
The reason why only 35 of PETA's 105 attributes are chosen is because the other attributes have lower positive ratios, where we follow the settings given in the PETA paper
Thanks for the correction.
Thanks for the confirmation! By the way, the project is extremely helpful for me to understand the algorithm of the PAR....
first of all, thank you to upload test_example.py in PromptPAR
When I tested the model using test_example.py, I learned several things for the model.
IndexError: index 35 is out of bounds for axis 0 with size 35