Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
import cv2
|
5 |
from PIL import Image
|
6 |
from torchvision import transforms
|
7 |
-
from
|
8 |
|
9 |
# Load U²-Net model
|
10 |
model_path = "cloth-segmentation/models/u2net.pth" # Ensure this path is correct
|
|
|
4 |
import cv2
|
5 |
from PIL import Image
|
6 |
from torchvision import transforms
|
7 |
+
from cloth_segmentation.networks.u2net import U2NET # Import U²-Net
|
8 |
|
9 |
# Load U²-Net model
|
10 |
model_path = "cloth-segmentation/models/u2net.pth" # Ensure this path is correct
|