Skip to content

Commit

Permalink
detectron2: require coco2017-minimal data
Browse files Browse the repository at this point in the history
It seems like detectron2 requires coco2017-minimal data. It gets installed with vision-maskrcnn, but if you want to install requirements only for one model we need the installer scripts for the detectron models to download coco2017-minimal.
  • Loading branch information
davidberard98 committed Nov 2, 2023
1 parent 94f54e8 commit d492158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchbenchmark/util/framework/detectron2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def remove_tools_directory():

def install_detectron2(model_name, model_dir):
s3_utils.checkout_s3_data("INPUT_TARBALLS", "coco128.tar.gz", decompress=True)
s3_utils.checkout_s3_data("INPUT_TARBALLS", "coco2017-minimal.tar.gz", decompress=True)
install_model_weights(model_name, model_dir)
pip_install_requirements()
remove_tools_directory()

0 comments on commit d492158

Please sign in to comment.