Spaces:
Build error
Build error
Matteo Sirri
commited on
Commit
·
dea24b0
1
Parent(s):
7a129e5
chore: change input folders
Browse files- app.py +2 -2
- example1.jpg → input_examples/input_examples/001.jpg +2 -2
- example2.jpg → input_examples/input_examples/002.jpg +2 -2
- input_examples/input_examples/003.jpg +3 -0
- input_examples/input_examples/004.jpg +3 -0
- input_examples/input_examples/005.jpg +3 -0
- input_examples/input_examples/006.jpg +3 -0
- input_examples/input_examples/007.jpg +3 -0
app.py
CHANGED
@@ -5,7 +5,7 @@ import logging
|
|
5 |
import torchvision
|
6 |
from torchvision.models.detection.faster_rcnn import fasterrcnn_resnet50_fpn_v2
|
7 |
from torchvision.models.detection.faster_rcnn import FastRCNNPredictor
|
8 |
-
from configs.path_cfg import
|
9 |
from src.detection.graph_utils import add_bbox
|
10 |
from src.detection.vision import presets
|
11 |
logging.getLogger('PIL').setLevel(logging.CRITICAL)
|
@@ -48,7 +48,7 @@ def detect_with_resnet50Model_baseline(image):
|
|
48 |
|
49 |
title = "Performance comparision of Faster R-CNN for people detection with syntetic data"
|
50 |
description = "<p style='text-align: center'>Performance comparision of Faster RCNN models for people detection using MOTSynth and MOT17"
|
51 |
-
examples =
|
52 |
|
53 |
io_baseline = gr.Interface(detect_with_resnet50Model_baseline, gr.Image(type="pil"), gr.Image(
|
54 |
type="file", shape=(1920, 1080), label="Baseline Faster RCNN Model pretrained on COCO dataset"))
|
|
|
5 |
import torchvision
|
6 |
from torchvision.models.detection.faster_rcnn import fasterrcnn_resnet50_fpn_v2
|
7 |
from torchvision.models.detection.faster_rcnn import FastRCNNPredictor
|
8 |
+
from configs.path_cfg import OUTPUT_DIR
|
9 |
from src.detection.graph_utils import add_bbox
|
10 |
from src.detection.vision import presets
|
11 |
logging.getLogger('PIL').setLevel(logging.CRITICAL)
|
|
|
48 |
|
49 |
title = "Performance comparision of Faster R-CNN for people detection with syntetic data"
|
50 |
description = "<p style='text-align: center'>Performance comparision of Faster RCNN models for people detection using MOTSynth and MOT17"
|
51 |
+
examples = "/input_examples"
|
52 |
|
53 |
io_baseline = gr.Interface(detect_with_resnet50Model_baseline, gr.Image(type="pil"), gr.Image(
|
54 |
type="file", shape=(1920, 1080), label="Baseline Faster RCNN Model pretrained on COCO dataset"))
|
example1.jpg → input_examples/input_examples/001.jpg
RENAMED
File without changes
|
example2.jpg → input_examples/input_examples/002.jpg
RENAMED
File without changes
|
input_examples/input_examples/003.jpg
ADDED
![]() |
Git LFS Details
|
input_examples/input_examples/004.jpg
ADDED
![]() |
Git LFS Details
|
input_examples/input_examples/005.jpg
ADDED
![]() |
Git LFS Details
|
input_examples/input_examples/006.jpg
ADDED
![]() |
Git LFS Details
|
input_examples/input_examples/007.jpg
ADDED
![]() |
Git LFS Details
|