Spaces:
Runtime error
Runtime error
πwπ
Browse files
app.py
CHANGED
@@ -6,9 +6,9 @@ from transformers import AutoModelForImageSegmentation
|
|
6 |
import torch
|
7 |
from torchvision import transforms
|
8 |
|
9 |
-
|
10 |
|
11 |
-
birefnet = AutoModelForImageSegmentation.from_pretrained('zhengpeng7/BiRefNet', trust_remote_code=True
|
12 |
birefnet.to("cuda")
|
13 |
transform_image = transforms.Compose([
|
14 |
transforms.Resize((1024, 1024)),
|
|
|
6 |
import torch
|
7 |
from torchvision import transforms
|
8 |
|
9 |
+
torch.set_float32_matmul_precision(['high', 'highest'][0])
|
10 |
|
11 |
+
birefnet = AutoModelForImageSegmentation.from_pretrained('zhengpeng7/BiRefNet', trust_remote_code=True)
|
12 |
birefnet.to("cuda")
|
13 |
transform_image = transforms.Compose([
|
14 |
transforms.Resize((1024, 1024)),
|