barunsaha commited on
Commit
6269917
·
unverified ·
2 Parent(s): aeb4c8f 759ba4b

Merge pull request #50 from barun-saha/visual

Browse files
file_embeddings/embeddings.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4c2758d74daff23f638acff398d1a512c74b97178118b7adbe8433ae8d368f52
3
- size 158848
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64a1ba79b20c81ba7ed6604468736f74ae89813fe378191af1d8574c008b3ab5
3
+ size 326784
file_embeddings/icons.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2deede2276676fff6e70e585f5c05d004b3f24d5dc389a3c09228fbd814bcfce
3
- size 49728
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce5ce4c86bb213915606921084b3516464154edcae12f4bc708d62c6bd7acebb
3
+ size 51168
global_config.py CHANGED
@@ -35,7 +35,7 @@ class GlobalConfig:
35
 
36
  LLM_PROGRESS_MAX = 90
37
  ICONS_DIR = 'icons/png128/'
38
- TINY_BERT_MODEL = 'gaunernst/bert-tiny-uncased'
39
  EMBEDDINGS_FILE_NAME = 'file_embeddings/embeddings.npy'
40
  ICONS_FILE_NAME = 'file_embeddings/icons.npy'
41
 
 
35
 
36
  LLM_PROGRESS_MAX = 90
37
  ICONS_DIR = 'icons/png128/'
38
+ TINY_BERT_MODEL = 'gaunernst/bert-mini-uncased'
39
  EMBEDDINGS_FILE_NAME = 'file_embeddings/embeddings.npy'
40
  ICONS_FILE_NAME = 'file_embeddings/icons.npy'
41
 
helpers/icons_embeddings.py CHANGED
@@ -115,9 +115,51 @@ def main():
115
  # Run this again if icons are to be added/removed
116
  save_icons_embeddings()
117
 
118
- keywords = ['deep learning', 'library', 'universe', 'brain', 'cybersecurity', 'gaming', '']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  icon_files = find_icons(keywords)
120
- print(f'The relevant icon files are: {icon_files}')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
 
123
  if __name__ == '__main__':
 
115
  # Run this again if icons are to be added/removed
116
  save_icons_embeddings()
117
 
118
+ keywords = [
119
+ 'deep learning',
120
+ '',
121
+ 'recycling',
122
+ 'handshake',
123
+ 'Ferry',
124
+ 'rain drop',
125
+ 'speech bubble',
126
+ 'mental resilience',
127
+ 'turmeric',
128
+ 'Art',
129
+ 'price tag',
130
+ 'Oxygen',
131
+ 'oxygen',
132
+ 'Social Connection',
133
+ 'Accomplishment',
134
+ 'Python',
135
+ 'XML',
136
+ 'Handshake',
137
+ ]
138
  icon_files = find_icons(keywords)
139
+ print(
140
+ f'The relevant icon files are:\n'
141
+ f'{list(zip(keywords, icon_files))}'
142
+ )
143
+
144
+ # BERT tiny:
145
+ # [('deep learning', 'deep-learning'), ('', '123'), ('recycling', 'refinery'),
146
+ # ('handshake', 'dash-circle'), ('Ferry', 'cart'), ('rain drop', 'bucket'),
147
+ # ('speech bubble', 'globe'), ('mental resilience', 'exclamation-triangle'),
148
+ # ('turmeric', 'kebab'), ('Art', 'display'), ('price tag', 'bug-fill'),
149
+ # ('Oxygen', 'radioactive')]
150
+
151
+ # BERT mini
152
+ # [('deep learning', 'deep-learning'), ('', 'compass'), ('recycling', 'tools'),
153
+ # ('handshake', 'bandaid'), ('Ferry', 'cart'), ('rain drop', 'trash'),
154
+ # ('speech bubble', 'image'), ('mental resilience', 'recycle'), ('turmeric', 'linkedin'),
155
+ # ('Art', 'book'), ('price tag', 'card-image'), ('Oxygen', 'radioactive')]
156
+
157
+ # BERT small
158
+ # [('deep learning', 'deep-learning'), ('', 'gem'), ('recycling', 'tools'),
159
+ # ('handshake', 'handbag'), ('Ferry', 'truck'), ('rain drop', 'bucket'),
160
+ # ('speech bubble', 'strategy'), ('mental resilience', 'deep-learning'),
161
+ # ('turmeric', 'flower'),
162
+ # ('Art', 'book'), ('price tag', 'hotdog'), ('Oxygen', 'radioactive')]
163
 
164
 
165
  if __name__ == '__main__':
icons/png128/csv.png ADDED
icons/png128/handshake.png ADDED
icons/png128/html.png ADDED
icons/png128/lock.png ADDED
icons/png128/python.png ADDED
icons/png128/search.png ADDED
icons/png128/txt.png ADDED
icons/png128/xml.png ADDED
icons/png128/yml.png ADDED
icons/svg_repo.txt CHANGED
@@ -17,6 +17,7 @@ Icons collections used (and their licenses) from SVG Repo:
17
  - Objects Infographic Icons (CC0 License): https://www.svgrepo.com/collection/objects-infographic-icons/
18
  - Scientifics Study Collection (CC0 License): https://www.svgrepo.com/collection/scientifics-study/
19
  - Thanksgiving 4 Collection (CC0 License): https://www.svgrepo.com/collection/thanksgiving-4/
 
20
  - Vaadin Flat Vectors Collection (Apache License): https://www.svgrepo.com/collection/vaadin-flat-vectors/
21
 
22
  - India ICON SET (SVG) [NO attribution required]: https://icon666.com/collection/india_m7tgpnohh
@@ -172,3 +173,4 @@ https://www.svgrepo.com/download/423082/fast-food-fried-2.svg
172
  https://www.svgrepo.com/download/209887/tea-coffee-cup.svg
173
  https://www.svgrepo.com/download/209855/restaurant-spoon.svg
174
  https://www.svgrepo.com/download/209875/jelly-jar.svg
 
 
17
  - Objects Infographic Icons (CC0 License): https://www.svgrepo.com/collection/objects-infographic-icons/
18
  - Scientifics Study Collection (CC0 License): https://www.svgrepo.com/collection/scientifics-study/
19
  - Thanksgiving 4 Collection (CC0 License): https://www.svgrepo.com/collection/thanksgiving-4/
20
+ - Using Hands Collection (CC0 License): https://www.svgrepo.com/collection/using-hands/
21
  - Vaadin Flat Vectors Collection (Apache License): https://www.svgrepo.com/collection/vaadin-flat-vectors/
22
 
23
  - India ICON SET (SVG) [NO attribution required]: https://icon666.com/collection/india_m7tgpnohh
 
173
  https://www.svgrepo.com/download/209887/tea-coffee-cup.svg
174
  https://www.svgrepo.com/download/209855/restaurant-spoon.svg
175
  https://www.svgrepo.com/download/209875/jelly-jar.svg
176
+ https://www.svgrepo.com/download/83723/handshake.svg