We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d41e271 commit 0a88bebCopy full SHA for 0a88beb
README.md
@@ -131,6 +131,7 @@ from docarray import Document
131
132
def preproc(d: Document):
133
return (d.load_uri_to_image_blob() # load
134
+ .set_image_blob_shape((200, 200)) # resize all to 200x200
135
.set_image_blob_normalization() # normalize color
136
.set_image_blob_channel_axis(-1, 0)) # switch color axis for the pytorch model later
137
@@ -207,7 +208,7 @@ Better see it.
207
208
(DocumentArray(left_da[8].matches, copy=True)
209
.apply(lambda d: d.set_image_blob_channel_axis(0, -1)
210
.set_image_blob_inv_normalization())
- .plot_image_sprites('result.png'))
211
+ .plot_image_sprites())
212
```
213
214
<p align="center">
0 commit comments