Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ class LeffaPredictor:
|
|
10 |
def __init__(self):
|
11 |
# Carica i pesi del modello
|
12 |
# Sostituisci 'weights.pth' con il file del modello Leffa
|
13 |
-
self.model = torch.load("
|
14 |
|
15 |
def leffa_predict_vt(self, human_img_path, garment_img_path, garment_type):
|
16 |
# Simula il processo del modello (sostituisci con la logica reale)
|
|
|
10 |
def __init__(self):
|
11 |
# Carica i pesi del modello
|
12 |
# Sostituisci 'weights.pth' con il file del modello Leffa
|
13 |
+
self.model = torch.load("virtual_tryon_dc.pth", map_location=torch.device('cpu'))
|
14 |
|
15 |
def leffa_predict_vt(self, human_img_path, garment_img_path, garment_type):
|
16 |
# Simula il processo del modello (sostituisci con la logica reale)
|