annayding commited on
Commit
f024a1d
·
1 Parent(s): 47342ef

processor device

Browse files
Files changed (1) hide show
  1. owl_core.py +1 -1
owl_core.py CHANGED
@@ -46,7 +46,7 @@ def owl_full_video(
46
  threshold: float,
47
  fps_processed: int = 1,
48
  scaling_factor: float = 0.5,
49
- processor = Owlv2Processor.from_pretrained("google/owlv2-base-patch16-ensemble").to('cuda'),
50
  model = Owlv2ForObjectDetection.from_pretrained("google/owlv2-base-patch16-ensemble").to('cuda'),
51
  device: str = 'cuda',
52
  batch_size: int = 6,
 
46
  threshold: float,
47
  fps_processed: int = 1,
48
  scaling_factor: float = 0.5,
49
+ processor = Owlv2Processor.from_pretrained("google/owlv2-base-patch16-ensemble"),
50
  model = Owlv2ForObjectDetection.from_pretrained("google/owlv2-base-patch16-ensemble").to('cuda'),
51
  device: str = 'cuda',
52
  batch_size: int = 6,