Running TAO on Google Colab (2024)

If you have limited storage space, or want to iterate quickly through training experiments, we suggest you

  • Download data on to your local system

  • Run a utility script to generate a subset of the dataset

  • Upload this smaller dataset to your Google Drive to run experiments on

TAO provides utility scripts to generate such subsets for COCO dataset (which is around ~25 GB with ~120k images) and KITTI dataset (which is around ~12 GB with ~14k images)

To obtain subset for KITTI:

  • The subset generation file is present here. Run this script in your local system (not in Colab as you might have storage limitations)

  • Download and unzip kitti training and testing zip files here, you’ll have 2 folders training and testing

  • To obtain subset for training:

    Copy

    Copied!

     

    python generate_kitti_subset.py --source-data-dir=path_to_training_folder --out-data-dir=path_to_save_subset_data/training/ --training True --num-images=num_of_images_in_subset

    Example

     

    python generate_kitti_subset.py --source-data-dir=/home/user/data/training --out-data-dir=/home/user/subset_data/training/ --training True --num-images=100

  • To obtain subset for testing:

    Copy

    Copied!

     

    python generate_kitti_subset.py --source-data-dir=path_to_training_folder --out-data-dir=path_to_save_subset_data/training/ --num-images=num_of_images_in_subset

    Example

    Copy

    Copied!

     

    python generate_kitti_subset.py --source-data-dir=/home/user/data/testing --out-data-dir=/home/user/subset_data/testing/ --num-images=100

Dataset folder structure for kitti:

 

path_to_training_folder|___images|___labelspath_to_testing_folder|___images

To obtain subset for COCO:

  • The subset generation file is present here. Run this script in your local system (not in Colab as you might have storage limitations)

  • Download and unzip 2017 train and val images, 2017 train/val annotations from here

  • To obtain subset for training:

    Copy

    Copied!

     

    python generate_coco_subset.py --source-image-dir=path_to_train2017_folder --source-annotation-file=path_to_instances_train2017.json_file --out-data-dir=path_to_save_subset_data --num-images=num_of_images_in_subset

    Example

    Copy

    Copied!

     

    python generate_coco_subset.py --source-image-dir=/home/user/data/train2017 --source-annotation-file=/home/user/data/annotations/instances_train2017.json --out-data-dir=/home/user/subset_data/ --num-images=100

  • To obtain subset for validation:

    Copy

    Copied!

     

    python generate_coco_subset.py --source-image-dir=path_to_val2017_folder --source-annotation-file=path_to_instances_val2017.json_file --out-data-dir=path_to_save_subset_data --num-images=num_of_images_in_subset

    Example

    Copy

    Copied!

     

    python generate_coco_subset.py --source-image-dir=/home/user/data/val2017 --source-annotation-file=/home/user/data/annotations/instances_val2017.json --out-data-dir=/home/user/subset_data/ --num-images=100

Dataset folder structure for coco:

Copy

Copied!

 

folder_into_which_downloaded_coco_files_are_unzipped|___train2017|___val2017|___annotations |___instances_train2017.json |___instances_val2017.json

Running TAO on Google Colab (2024)
Top Articles
Mobile Banking: Advantages & Disadvantages of Mobile Banking
Is An S-Corp Or LLC Right For Your Startup?
Katie Nickolaou Leaving
Compare Foods Wilson Nc
Windcrest Little League Baseball
Pga Scores Cbs
The Realcaca Girl Leaked
Nc Maxpreps
Encore Atlanta Cheer Competition
Merlot Aero Crew Portal
Umn Pay Calendar
Mikayla Campino Video Twitter: Unveiling the Viral Sensation and Its Impact on Social Media
Baseball-Reference Com
Tamilblasters 2023
Large storage units
Summer Rae Boyfriend Love Island – Just Speak News
Guidewheel lands $9M Series A-1 for SaaS that boosts manufacturing and trims carbon emissions | TechCrunch
Destiny 2 Salvage Activity (How to Complete, Rewards & Mission)
Water Days For Modesto Ca
Dark Chocolate Cherry Vegan Cinnamon Rolls
Grayling Purnell Net Worth
Aldi Bruce B Downs
Naval Academy Baseball Roster
14 Top-Rated Attractions & Things to Do in Medford, OR
Keyn Car Shows
Lovindabooty
Violent Night Showtimes Near Johnstown Movieplex
Encore Atlanta Cheer Competition
Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
John Philip Sousa Foundation
Hannah Jewell
Imagetrend Elite Delaware
Duke Energy Anderson Operations Center
The Pretty Kitty Tanglewood
Justin Mckenzie Phillip Bryant
Daily Journal Obituary Kankakee
Jr Miss Naturist Pageant
CVS Near Me | Somersworth, NH
AI-Powered Free Online Flashcards for Studying | Kahoot!
Msnl Seeds
Rage Of Harrogath Bugged
Ktbs Payroll Login
Paperless Employee/Kiewit Pay Statements
Yogu Cheshire
Author's Purpose And Viewpoint In The Dark Game Part 3
Wilson Tire And Auto Service Gambrills Photos
Fatal Accident In Nashville Tn Today
Enr 2100
Blog Pch
Besoldungstabellen | Niedersächsisches Landesamt für Bezüge und Versorgung (NLBV)
Salem witch trials - Hysteria, Accusations, Executions
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6512

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.