Diffusers
PyTorch
custom_code
huangrh9 commited on
Commit
db6323f
·
verified ·
1 Parent(s): d92d62d

Fix the shape error in example

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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.unsqueeze(0).cuda()
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, _), \