Update README.md
Browse files
README.md
CHANGED
|
@@ -45,8 +45,9 @@ transform = Compose([
|
|
| 45 |
PrepareForNet(),
|
| 46 |
])
|
| 47 |
|
| 48 |
-
|
| 49 |
-
image =
|
|
|
|
| 50 |
image = torch.from_numpy(image).unsqueeze(0)
|
| 51 |
|
| 52 |
depth = model(image)
|
|
|
|
| 45 |
PrepareForNet(),
|
| 46 |
])
|
| 47 |
|
| 48 |
+
image = Image.open("...")
|
| 49 |
+
image = np.array(image) / 255.0
|
| 50 |
+
image = transform({'image': image})['image']
|
| 51 |
image = torch.from_numpy(image).unsqueeze(0)
|
| 52 |
|
| 53 |
depth = model(image)
|