Spaces:
Build error
Build error
edits
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ net_imagenet.load_state_dict(state2['state_dict'], strict=False)
|
|
45 |
transform = transforms.Compose([
|
46 |
transforms.Resize(1024),
|
47 |
transforms.ToTensor(),
|
48 |
-
transforms.Normalize(**dict(zip(["mean", "std"],
|
49 |
])
|
50 |
# ---------------------------------------
|
51 |
|
|
|
45 |
transform = transforms.Compose([
|
46 |
transforms.Resize(1024),
|
47 |
transforms.ToTensor(),
|
48 |
+
transforms.Normalize(**dict(zip(["mean", "std"], net_sfm.runtime['mean_std'])))
|
49 |
])
|
50 |
# ---------------------------------------
|
51 |
|