nathanjc commited on
Commit
189d45d
·
1 Parent(s): d652406

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -207,11 +207,6 @@ def get_output(image):
207
  opt = options(weights='logo_detection.pt',source=source)
208
  bbox = None
209
  with torch.no_grad():
210
- # if opt.update: # update all models (to fix SourceChangeWarning)
211
- # for opt.weights in ['yolov7.pt']:
212
- # bbox,output_path = detect(opt)
213
- # strip_optimizer(opt.weights)
214
- # else:
215
  bbox,output_path = detect(opt)
216
  if os.path.exists(output_path):
217
  return Image.open(output_path)
 
207
  opt = options(weights='logo_detection.pt',source=source)
208
  bbox = None
209
  with torch.no_grad():
 
 
 
 
 
210
  bbox,output_path = detect(opt)
211
  if os.path.exists(output_path):
212
  return Image.open(output_path)