Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def load_model():
|
|
20 |
model=load_model()
|
21 |
#, force_reload=True
|
22 |
def detect(inp):
|
23 |
-
#g = (size / max(inp.size)) #
|
24 |
#im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
|
25 |
results = model(inp,size=640) # inference
|
26 |
results.render() # updates results.imgs with boxes and labels
|
|
|
20 |
model=load_model()
|
21 |
#, force_reload=True
|
22 |
def detect(inp):
|
23 |
+
#g = (size / max(inp.size)) #gain
|
24 |
#im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
|
25 |
results = model(inp,size=640) # inference
|
26 |
results.render() # updates results.imgs with boxes and labels
|