EscVM / OIDv4_ToolKit

Download and visualize single or multiple classes from the huge Open Images v4 dataset
GNU General Public License v3.0
798 stars 633 forks source link

Error downloading images #79

Open Muzammil-Elahi opened 4 years ago

Muzammil-Elahi commented 4 years ago

I run: python main.py downloader --classes Weapon Airplane Vehicle_registration_plate --type_csv train --limit 500 and get the following error: [INFO] | Downloading Weapon. Traceback (most recent call last): File "C:\Users\123\Repos\OIDv4_ToolKit\modules\downloader.py", line 25, in download columns, rows = os.get_terminal_size(0) OSError: [WinError 6] The handle is invalid

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 37, in bounding_boxes_images(args, DEFAULT_OID_DIR) File "C:\Users\123\Repos\OIDv4_ToolKit\modules\bounding_boxes.py", line 62, in bounding_boxes_images download(args, df_val, folder[0], dataset_dir, class_name, class_code) File "C:\Users\123\Repos\OIDv4_ToolKit\modules\downloader.py", line 27, in download columns, rows = os.get_terminal_size(1) OSError: [WinError 6] The handle is invalid Running this on windows 10 with python 3.5 but I also have 3.8 Sorry for the inconvenience and thank you for you time.