You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If you have a sixtel compatible terminal you can display the images in the terminal
77
74
# (see https://github.com/saitoha/libsixel for details)
78
-
display_in_terminal(dogball)
75
+
display_in_terminal(output)
76
+
77
+
# Save results as png images
78
+
save_as_images(output)
79
79
```
80
80
81
+

82
+

83
+

84
+
81
85
## Doc
82
86
83
87
### Loading DeepMind's pre-trained weights
@@ -190,7 +194,7 @@ Here are some details on these methods:
190
194
- Output:
191
195
- array of shape (batch_size, 1000)
192
196
193
-
-`one_hot_from_name(class_name, batch_size=1)`:
197
+
-`one_hot_from_names(class_name, batch_size=1)`:
194
198
195
199
Create a one-hot vector from the name of an imagenet class ('tennis ball', 'daisy', ...). We use NLTK's wordnet search to try to find the relevant synset of ImageNet and take the first one. If we can't find it direcly, we look at the hyponyms and hypernyms of the class name.
0 commit comments