3v324v23 commited on
Commit
aaba0bb
·
1 Parent(s): 1d65dbe

visualization update

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. requirements.txt +2 -0
app.py CHANGED
@@ -3,13 +3,13 @@ import numpy as np
3
  import gradio as gr
4
  from infer import detections
5
 
6
-
 
7
  import os
8
  os.system("mkdir data")
9
  os.system("mkdir data/models")
10
  os.system("wget https://www.cs.cmu.edu/~walt/models/walt_people.pth -O data/models/walt_people.pth")
11
  os.system("wget https://www.cs.cmu.edu/~walt/models/walt_vehicle.pth -O data/models/walt_vehicle.pth")
12
-
13
  def walt_demo(input_img):
14
  #detect_people = detections('configs/walt/walt_people.py', 'cuda:0', model_path='data/models/walt_people.pth')
15
  detect = detections('configs/walt/walt_vehicle.py', 'cuda:0', model_path='data/models/walt_vehicle.pth')
@@ -65,5 +65,6 @@ demo = gr.Interface(walt_demo,
65
 
66
  #demo.launch(server_name="0.0.0.0", server_port=7000)
67
  demo.launch()
 
68
 
69
 
 
3
  import gradio as gr
4
  from infer import detections
5
 
6
+ '''
7
+ '''
8
  import os
9
  os.system("mkdir data")
10
  os.system("mkdir data/models")
11
  os.system("wget https://www.cs.cmu.edu/~walt/models/walt_people.pth -O data/models/walt_people.pth")
12
  os.system("wget https://www.cs.cmu.edu/~walt/models/walt_vehicle.pth -O data/models/walt_vehicle.pth")
 
13
  def walt_demo(input_img):
14
  #detect_people = detections('configs/walt/walt_people.py', 'cuda:0', model_path='data/models/walt_people.pth')
15
  detect = detections('configs/walt/walt_vehicle.py', 'cuda:0', model_path='data/models/walt_vehicle.pth')
 
65
 
66
  #demo.launch(server_name="0.0.0.0", server_port=7000)
67
  demo.launch()
68
+ '''
69
 
70
 
requirements.txt CHANGED
@@ -6,3 +6,5 @@ scikit-image
6
  imagesize
7
  torchvision==0.10.0
8
  imantics
 
 
 
6
  imagesize
7
  torchvision==0.10.0
8
  imantics
9
+ terminaltables
10
+ pycocotools