mlunar commited on
Commit
555f7ba
1 Parent(s): 6a3ad5b

Tweaked example output

Browse files
Files changed (2) hide show
  1. README.md +32 -32
  2. 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
- 0.294922 >>>>>>>> a close up photo of a cherry blossom
51
- 0.267578 >>>>>>>> cherry blossom
52
- 0.249878 >>>>>>> flowers
53
- 0.242554 >>>>>>> a photo taken on a bright and sunny day
54
- 0.228882 >>>>>> bees
55
- 0.222778 >>>>>> plant
56
- 0.216187 >>>>>> a photo taken on a dark and cloudy day
57
- 0.201538 >>>>>> ruhrgebiet
58
- 0.196655 >>>>> processing plant
59
- 0.192139 >>>>> a photo taken at midnight
60
- 0.18689 >>>>> industry
61
- 0.177856 >>>>> cars
62
- 0.176636 >>>>> dogs and cats
63
- 0.111267 >>> a large industrial plant with many pipes, walkways and railings
64
- -------- -------- ---------------------------------------------------------------
65
 
66
  heavy-industry.jpg
67
- -------- ---------- ---------------------------------------------------------------
68
- 0.336182 >>>>>>>>>> a large industrial plant with many pipes, walkways and railings
69
- 0.316895 >>>>>>>>> processing plant
70
- 0.302002 >>>>>>>>> industry
71
- 0.27417 >>>>>>>> ruhrgebiet
72
- 0.254883 >>>>>>> plant
73
- 0.22876 >>>>>> a photo taken on a dark and cloudy day
74
- 0.219482 >>>>>> a photo taken on a bright and sunny day
75
- 0.211304 >>>>>> a photo taken at midnight
76
- 0.198608 >>>>> cars
77
- 0.190552 >>>>> flowers
78
- 0.181885 >>>>> bees
79
- 0.180542 >>>>> cherry blossom
80
- 0.174438 >>>>> dogs and cats
81
- 0.14917 >>>> a close up photo of a cherry blossom
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()