Commit
•
da01a2d
1
Parent(s):
2037a75
disable custom kernel
Browse files
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=
|
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=True,
|
21 |
torch_dtype=torch.float16,
|
22 |
).to(device)
|
23 |
model_compiled = torch.compile(
|