UDA-Animal-Pose icon indicating copy to clipboard operation
UDA-Animal-Pose copied to clipboard

Please include these lines at the end of get_cropped_TigDog.py file

Open jasorsi13 opened this issue 2 years ago • 1 comments

Only after adding the lines the command "python get_cropped_TigDog.py" will run.

append file get_cropped_TigDog.py: ################################################

if __name__== "__main__":
    animals = ['horse', 'tiger']
    img_folder = './animal_data/'
    for animal in animals:
        img_list, anno_list = load_animal(data_dir=img_folder, animal=animal)
        img_idxs = dataset_filter(anno_list)
        print(len(img_idxs))

        if not os.path.exists(os.path.join(img_folder, 'real_animal_crop_v4',  'real_'+animal+'_crop')):
            os.makedirs(os.path.join(img_folder, 'real_animal_crop_v4', 'real_'+animal+'_crop'))
 
        get_cropped_dataset(img_folder, img_list, anno_list, img_idxs, animal) 
 

###################################################

jasorsi13 avatar Jan 18 '23 22:01 jasorsi13

Hi @jasorsi13, sorry for the late reply. Yes, thanks for pointing out, pls add in the lines if you want to preprocess data by yourself.

chaneyddtt avatar Feb 06 '23 02:02 chaneyddtt