Fix the shape error in example
Browse files
README.md
CHANGED
|
@@ -44,7 +44,7 @@ IMAGE_PATH = "YOUR_IMAGE_PATH"
|
|
| 44 |
image = Image.open(IMAGE_PATH)
|
| 45 |
|
| 46 |
image = processor(image, return_tensors="pt")["pixel_values"]
|
| 47 |
-
image = image.
|
| 48 |
|
| 49 |
with torch.no_grad():
|
| 50 |
(quant_semantic, diff_semantic, indices_semantic, _), \
|
|
|
|
| 44 |
image = Image.open(IMAGE_PATH)
|
| 45 |
|
| 46 |
image = processor(image, return_tensors="pt")["pixel_values"]
|
| 47 |
+
image = image.cuda()
|
| 48 |
|
| 49 |
with torch.no_grad():
|
| 50 |
(quant_semantic, diff_semantic, indices_semantic, _), \
|