| import json |
| import torch |
| json_path='./SGG_data/RAHP/RAHP_file/vg_relation_aware_prompts.json' |
| json_file = json.load(open(json_path)) |
|
|
| print(len(json_file.keys())) |
|
|
| super_entities = [ |
| 'male', 'female', 'children', 'pets', 'wild animal', 'ground transport', |
| 'water transport', 'air transport', 'sports equipment', 'seating furniture', |
| 'decorative item', 'table', 'upper body clothing', 'lower body clothing', |
| 'footwear', 'accessory', 'fruit', 'vegetable', 'prepared food', 'beverage', |
| 'utensils', 'container', 'textile', 'landscape', 'urban feature', 'plant', |
| 'structure', 'household item', 'head part', 'limb and appendage' |
| ] |
| print(len(super_entities)) |
|
|
| |
| |
| |
| |
| |
| |
|
|
|
|