-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luca
committed
Jan 5, 2021
1 parent
ae40ddb
commit 759b403
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
# AGC - Nuvi RecycleNet | ||
Effective trash detection model for AI Grand Challenge 2020 track 3 round 1. | ||
Nuvilabs Solution. | ||
The classes to be detected are: | ||
|
||
- combustion | ||
- paper | ||
- steel | ||
- glass | ||
- plastic | ||
- plasticbag | ||
- styrofoam | ||
- food | ||
|
||
## Usage | ||
Download the pretrained model | ||
|
||
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1LnCw4L8RnM3qM96czxTTsOHn3xAKEpya' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1LnCw4L8RnM3qM96czxTTsOHn3xAKEpya" -O ./model/model_checkpoint.pth && rm -rf /tmp/cookies.txt | ||
|
||
|
||
Run inference | ||
|
||
python main.py --img_path ./sample_img.jpg | ||
Will return a dictionary with the following format: | ||
{'Annotations': [{'Label': 'steel', 'Bbox': [564, 383, 695, 443], 'Confidence': 0.9856872}]} | ||
The bbox format follows: [xmin, ymin, xmax, ymax] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters