Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jasorsi13 opened this issue Jan 18, 2023 · 1 comment
Open

Comments

@jasorsi13
Copy link

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 jasorsi13 reopened this Jan 18, 2023
@chaneyddtt
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants