Skip to content

Commit

Permalink
Changes to class maps
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropro committed Jan 2, 2020
1 parent ec0dd4c commit 097d33d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion detector/taco_config/map_1.csv
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Polypropylene bag,Litter
Produce bag,Litter
Cereal bag,Litter
Bread bag,Litter
Plastic Film,Litter
Plastic film,Litter
Crisp packet,Litter
Other plastic wrapper,Litter
Retort pouch,Litter
Expand Down
2 changes: 1 addition & 1 deletion detector/taco_config/map_17.csv
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Polypropylene bag,Plastic film
Produce bag,Plastic film
Cereal bag,Plastic film
Bread bag,Plastic film
Plastic Film,Plastic film
Plastic film,Plastic film
Crisp packet,Wrapper
Other plastic wrapper,Wrapper
Retort pouch,Wrapper
Expand Down
2 changes: 1 addition & 1 deletion detector/taco_config/map_2.csv
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Polypropylene bag,Background
Produce bag,Background
Cereal bag,Background
Bread bag,Background
Plastic Film,Background
Plastic film,Background
Crisp packet,Background
Other plastic wrapper,Background
Retort pouch,Background
Expand Down
2 changes: 1 addition & 1 deletion detector/taco_config/map_3.csv
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Polypropylene bag,Plastic bag + wrapper
Produce bag,Plastic bag + wrapper
Cereal bag,Plastic bag + wrapper
Bread bag,Plastic bag + wrapper
Plastic Film,Plastic bag + wrapper
Plastic film,Plastic bag + wrapper
Crisp packet,Plastic bag + wrapper
Other plastic wrapper,Plastic bag + wrapper
Retort pouch,Plastic bag + wrapper
Expand Down
2 changes: 1 addition & 1 deletion detector/taco_config/map_4.csv
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Polypropylene bag,Plastic bag + wrapper
Produce bag,Plastic bag + wrapper
Cereal bag,Plastic bag + wrapper
Bread bag,Plastic bag + wrapper
Plastic Film,Plastic bag + wrapper
Plastic film,Plastic bag + wrapper
Crisp packet,Plastic bag + wrapper
Other plastic wrapper,Plastic bag + wrapper
Retort pouch,Plastic bag + wrapper
Expand Down
5 changes: 5 additions & 0 deletions detector/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,11 @@ def download_trained_weights(coco_model_path, verbose=1):
coco_model_path: local path of COCO trained weights
"""

subdir = os.path.dirname(coco_model_path)
if not os.path.isdir(subdir):
os.mkdir(subdir)

if verbose > 0:
print("Downloading pretrained model to " + coco_model_path + " ...")
with urllib.request.urlopen(COCO_MODEL_URL) as resp, open(coco_model_path, 'wb') as out:
Expand Down

0 comments on commit 097d33d

Please sign in to comment.