yonigozlan HF staff commited on
Commit
40a6300
1 Parent(s): da01a2d

enable kernel

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
17
  processor = AutoProcessor.from_pretrained("PekingU/rtdetr_r50vd_coco_o365")
18
  model = AutoModelForObjectDetection.from_pretrained(
19
  "PekingU/rtdetr_r50vd_coco_o365",
20
- disable_custom_kernels=True,
21
  torch_dtype=torch.float16,
22
  ).to(device)
23
  model_compiled = torch.compile(
 
17
  processor = AutoProcessor.from_pretrained("PekingU/rtdetr_r50vd_coco_o365")
18
  model = AutoModelForObjectDetection.from_pretrained(
19
  "PekingU/rtdetr_r50vd_coco_o365",
20
+ disable_custom_kernels=False,
21
  torch_dtype=torch.float16,
22
  ).to(device)
23
  model_compiled = torch.compile(