Tweaked example output
Browse files- README.md +32 -32
- example.py +1 -1
README.md
CHANGED
@@ -46,40 +46,40 @@ Texts shape: (14, 77)
|
|
46 |
Embeddings shape: (14, 512)
|
47 |
|
48 |
flowers.jpg
|
49 |
-
|
50 |
-
|
51 |
-
0.
|
52 |
-
0.
|
53 |
-
0.
|
54 |
-
0.
|
55 |
-
0.
|
56 |
-
0.
|
57 |
-
0.
|
58 |
-
0.
|
59 |
-
0.
|
60 |
-
0.
|
61 |
-
0.
|
62 |
-
0.
|
63 |
-
0.
|
64 |
-
|
65 |
|
66 |
heavy-industry.jpg
|
67 |
-
|
68 |
-
|
69 |
-
0.
|
70 |
-
0.
|
71 |
-
0.
|
72 |
-
0.
|
73 |
-
0.
|
74 |
-
0.
|
75 |
-
0.
|
76 |
-
0.
|
77 |
-
0.
|
78 |
-
0.
|
79 |
-
0.
|
80 |
-
0.
|
81 |
-
0.
|
82 |
-
|
83 |
```
|
84 |
|
85 |
## Parameters
|
|
|
46 |
Embeddings shape: (14, 512)
|
47 |
|
48 |
flowers.jpg
|
49 |
+
similarity bar chart text
|
50 |
+
------------ ----------- ---------------------------------------------------------------
|
51 |
+
0.294922 >>>>>>>> a close up photo of a cherry blossom
|
52 |
+
0.267578 >>>>>>>> cherry blossom
|
53 |
+
0.249878 >>>>>>> flowers
|
54 |
+
0.242554 >>>>>>> a photo taken on a bright and sunny day
|
55 |
+
0.228882 >>>>>> bees
|
56 |
+
0.222778 >>>>>> plant
|
57 |
+
0.216187 >>>>>> a photo taken on a dark and cloudy day
|
58 |
+
0.201538 >>>>>> ruhrgebiet
|
59 |
+
0.196655 >>>>> processing plant
|
60 |
+
0.192139 >>>>> a photo taken at midnight
|
61 |
+
0.18689 >>>>> industry
|
62 |
+
0.177856 >>>>> cars
|
63 |
+
0.176636 >>>>> dogs and cats
|
64 |
+
0.111267 >>> a large industrial plant with many pipes, walkways and railings
|
65 |
|
66 |
heavy-industry.jpg
|
67 |
+
similarity bar chart text
|
68 |
+
------------ ----------- ---------------------------------------------------------------
|
69 |
+
0.336182 >>>>>>>>>> a large industrial plant with many pipes, walkways and railings
|
70 |
+
0.316895 >>>>>>>>> processing plant
|
71 |
+
0.302002 >>>>>>>>> industry
|
72 |
+
0.27417 >>>>>>>> ruhrgebiet
|
73 |
+
0.254883 >>>>>>> plant
|
74 |
+
0.22876 >>>>>> a photo taken on a dark and cloudy day
|
75 |
+
0.219482 >>>>>> a photo taken on a bright and sunny day
|
76 |
+
0.211304 >>>>>> a photo taken at midnight
|
77 |
+
0.198608 >>>>> cars
|
78 |
+
0.190552 >>>>> flowers
|
79 |
+
0.181885 >>>>> bees
|
80 |
+
0.180542 >>>>> cherry blossom
|
81 |
+
0.174438 >>>>> dogs and cats
|
82 |
+
0.14917 >>>> a close up photo of a cherry blossom
|
83 |
```
|
84 |
|
85 |
## Parameters
|
example.py
CHANGED
@@ -62,5 +62,5 @@ for ii, image in enumerate(images):
|
|
62 |
|
63 |
similarities.sort(reverse=True, key=itemgetter(0))
|
64 |
print(image)
|
65 |
-
print(tabulate(similarities))
|
66 |
print()
|
|
|
62 |
|
63 |
similarities.sort(reverse=True, key=itemgetter(0))
|
64 |
print(image)
|
65 |
+
print(tabulate(similarities, headers=["similarity", "bar chart", "text"]))
|
66 |
print()
|