Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,11 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
16 |
|
17 |
gpu_checkpoint_path = "efficientsam_s_gpu.jit"
|
18 |
cpu_checkpoint_path = "efficientsam_s_cpu.jit"
|
|
|
19 |
|
20 |
if torch.cuda.is_available():
|
21 |
-
model = torch.jit.load(
|
|
|
22 |
else:
|
23 |
model = torch.jit.load(cpu_checkpoint_path)
|
24 |
model.eval()
|
|
|
16 |
|
17 |
gpu_checkpoint_path = "efficientsam_s_gpu.jit"
|
18 |
cpu_checkpoint_path = "efficientsam_s_cpu.jit"
|
19 |
+
ti_gpu_checkpoint_path = "efficientsam_ti_gpu.jit"
|
20 |
|
21 |
if torch.cuda.is_available():
|
22 |
+
model = torch.jit.load(ti_gpu_checkpoint_path)
|
23 |
+
# model = torch.jit.load(gpu_checkpoint_path)
|
24 |
else:
|
25 |
model = torch.jit.load(cpu_checkpoint_path)
|
26 |
model.eval()
|