Skip to content

Commit 0a88beb

Browse files
committed
chore: update readme
1 parent d41e271 commit 0a88beb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ from docarray import Document
131131

132132
def preproc(d: Document):
133133
return (d.load_uri_to_image_blob() # load
134+
.set_image_blob_shape((200, 200)) # resize all to 200x200
134135
.set_image_blob_normalization() # normalize color
135136
.set_image_blob_channel_axis(-1, 0)) # switch color axis for the pytorch model later
136137

@@ -207,7 +208,7 @@ Better see it.
207208
(DocumentArray(left_da[8].matches, copy=True)
208209
.apply(lambda d: d.set_image_blob_channel_axis(0, -1)
209210
.set_image_blob_inv_normalization())
210-
.plot_image_sprites('result.png'))
211+
.plot_image_sprites())
211212
```
212213

213214
<p align="center">

0 commit comments

Comments
 (0)