Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ from fastdepth.models import MobileNetSkipAdd # Model ch铆nh c峄 FastDepth
|
|
23 |
|
24 |
# 馃煝 Load m么 h矛nh FastDepth
|
25 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
26 |
-
model = MobileNetSkipAdd()
|
27 |
model.load_state_dict(torch.load("fastdepth/models/fastdepth_nyu.pt", map_location=device))
|
28 |
model.eval().to(device)
|
29 |
|
|
|
23 |
|
24 |
# 馃煝 Load m么 h矛nh FastDepth
|
25 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
26 |
+
model = MobileNetSkipAdd(output_size=(224, 224)) # 馃敼 Th锚m output_size
|
27 |
model.load_state_dict(torch.load("fastdepth/models/fastdepth_nyu.pt", map_location=device))
|
28 |
model.eval().to(device)
|
29 |
|