Matteo Sirri commited on
Commit
dea24b0
·
1 Parent(s): 7a129e5

chore: change input folders

Browse files
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 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,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 = ["example1.jpg", "example2.jpg"]
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

  • SHA256: bda8a7613a588c7892275aaaa33df7221511784806248b58273a4ede6017a804
  • Pointer size: 131 Bytes
  • Size of remote file: 212 kB
input_examples/input_examples/004.jpg ADDED

Git LFS Details

  • SHA256: c5835c5305fc275fc75250634d68bd70ca98256f4b7810f4089766aeed33fea7
  • Pointer size: 130 Bytes
  • Size of remote file: 33.3 kB
input_examples/input_examples/005.jpg ADDED

Git LFS Details

  • SHA256: 66908a8eaf43e9ff6bdcc2607ab7404debd5cb511816f1b27a715fd7e7dca624
  • Pointer size: 131 Bytes
  • Size of remote file: 278 kB
input_examples/input_examples/006.jpg ADDED

Git LFS Details

  • SHA256: 548800a6783ef6d07a515d786a0674d8b7fd1aee78e751df71147948dafc0a9e
  • Pointer size: 131 Bytes
  • Size of remote file: 140 kB
input_examples/input_examples/007.jpg ADDED

Git LFS Details

  • SHA256: 9fbd46f60967604dab1388dfdc2a14a6c7803596ae945c0ac2b78775f1eb56c1
  • Pointer size: 131 Bytes
  • Size of remote file: 271 kB