Spaces:
Running
Running
Add new icons and embeddings
Browse files- file_embeddings/embeddings.npy +2 -2
- file_embeddings/icons.npy +2 -2
- helpers/icons_embeddings.py +3 -1
- icons/png128/alien-head.png +0 -0
- icons/png128/award-fill.png +0 -0
- icons/png128/brain.png +0 -0
- icons/png128/cardiogram.png +0 -0
- icons/png128/clusters.png +0 -0
- icons/png128/computer-tv.png +0 -0
- icons/png128/conversation.png +0 -0
- icons/png128/dna.png +0 -0
- icons/png128/doctor-patient.png +0 -0
- icons/png128/ev-station-fill.png +0 -0
- icons/png128/eye.png +0 -0
- icons/png128/farmer.png +0 -0
- icons/png128/finance-strategy.png +0 -0
- icons/png128/flask.png +0 -0
- icons/png128/glasses.png +0 -0
- icons/png128/{globe2.png → globe.png} +0 -0
- icons/png128/gloves.png +0 -0
- icons/png128/industrial-robot.png +0 -0
- icons/png128/laptop.png +0 -0
- icons/png128/megaphone-loudspeaker.png +0 -0
- icons/png128/microphone.png +0 -0
- icons/png128/microscope.png +0 -0
- icons/png128/morse-code.png +0 -0
- icons/png128/police.png +0 -0
- icons/png128/prescription.png +0 -0
- icons/png128/pulse.png +0 -0
- icons/png128/robotics.png +0 -0
- icons/png128/stethoscope.png +0 -0
- icons/png128/strategy.png +0 -0
- icons/png128/telemarketer-customer-service.png +0 -0
- icons/png128/webcam-video-chat.png +0 -0
- icons/svg_repo.txt +33 -0
file_embeddings/embeddings.npy
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46a3c1fa84abf394347acb10bf3bedca018f40a534b1496038a53f1ebe9b3117
|
3 |
+
size 107648
|
file_embeddings/icons.npy
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d74a08869d7798167f614f9027f727efd8e8e3d98aa1133a214c473bcd75353
|
3 |
+
size 24488
|
helpers/icons_embeddings.py
CHANGED
@@ -67,7 +67,9 @@ def save_icons_embeddings():
|
|
67 |
"""
|
68 |
|
69 |
file_names = get_icons_list()
|
|
|
70 |
file_name_embeddings = get_embeddings(file_names)
|
|
|
71 |
|
72 |
# Save embeddings to a file
|
73 |
np.save(GlobalConfig.EMBEDDINGS_FILE_NAME, file_name_embeddings)
|
@@ -111,7 +113,7 @@ def main():
|
|
111 |
"""
|
112 |
|
113 |
# Run this again if icons are to be added/removed
|
114 |
-
|
115 |
|
116 |
keywords = ['deep learning', 'library', 'universe', 'brain', 'cybersecurity', 'gaming', '']
|
117 |
icon_files = find_icons(keywords)
|
|
|
67 |
"""
|
68 |
|
69 |
file_names = get_icons_list()
|
70 |
+
print(f'{len(file_names)} icon files available...')
|
71 |
file_name_embeddings = get_embeddings(file_names)
|
72 |
+
print(f'file_name_embeddings.shape: {file_name_embeddings.shape}')
|
73 |
|
74 |
# Save embeddings to a file
|
75 |
np.save(GlobalConfig.EMBEDDINGS_FILE_NAME, file_name_embeddings)
|
|
|
113 |
"""
|
114 |
|
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)
|
icons/png128/alien-head.png
ADDED
icons/png128/award-fill.png
DELETED
Binary file (2.02 kB)
|
|
icons/png128/brain.png
ADDED
icons/png128/cardiogram.png
ADDED
icons/png128/clusters.png
ADDED
icons/png128/computer-tv.png
ADDED
icons/png128/conversation.png
ADDED
icons/png128/dna.png
ADDED
icons/png128/doctor-patient.png
ADDED
icons/png128/ev-station-fill.png
DELETED
Binary file (2.36 kB)
|
|
icons/png128/eye.png
ADDED
icons/png128/farmer.png
ADDED
icons/png128/finance-strategy.png
ADDED
icons/png128/flask.png
ADDED
icons/png128/glasses.png
ADDED
icons/png128/{globe2.png → globe.png}
RENAMED
File without changes
|
icons/png128/gloves.png
ADDED
icons/png128/industrial-robot.png
DELETED
Binary file (2.18 kB)
|
|
icons/png128/laptop.png
ADDED
icons/png128/megaphone-loudspeaker.png
ADDED
icons/png128/microphone.png
ADDED
icons/png128/microscope.png
ADDED
icons/png128/morse-code.png
ADDED
icons/png128/police.png
ADDED
icons/png128/prescription.png
ADDED
icons/png128/pulse.png
ADDED
icons/png128/robotics.png
ADDED
icons/png128/stethoscope.png
ADDED
icons/png128/strategy.png
ADDED
icons/png128/telemarketer-customer-service.png
ADDED
icons/png128/webcam-video-chat.png
ADDED
icons/svg_repo.txt
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
Icons collections used (and their licenses) from SVG Repo:
|
|
|
2 |
- Big Data And Web Analytics (CC0 License): https://www.svgrepo.com/collection/big-data-and-web-analytics/
|
3 |
- Calcite Sharp Line Icons Collection (MIT License): https://www.svgrepo.com/collection/calcite-sharp-line-icons/
|
4 |
- Carbon Design Pictograms (Apache License): https://www.svgrepo.com/collection/carbon-design-pictograms/
|
|
|
|
|
5 |
- Flexicon Sharp Interface Glyphs (MIT License): https://www.svgrepo.com/collection/flexicon-sharp-interface-glyphs/
|
6 |
- Future Technology 2 (CC0 License): https://www.svgrepo.com/collection/future-technology-2/
|
7 |
- Network 7 (CC0 License): https://www.svgrepo.com/collection/network-7/
|
8 |
- Objects Infographic Icons (CC0 License): https://www.svgrepo.com/collection/objects-infographic-icons/
|
|
|
|
|
9 |
|
10 |
|
11 |
The specific icons used are:
|
@@ -27,3 +32,31 @@ https://www.svgrepo.com/download/450794/deep-learning.svg
|
|
27 |
https://www.svgrepo.com/download/450704/certificate.svg
|
28 |
https://www.svgrepo.com/download/451006/knowledge-graph.svg
|
29 |
https://www.svgrepo.com/download/451276/satellite-3.svg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
Icons collections used (and their licenses) from SVG Repo:
|
2 |
+
- Basicons Interface Line Icons Collection (MIT License): https://www.svgrepo.com/collection/basicons-interface-line-icons/
|
3 |
- Big Data And Web Analytics (CC0 License): https://www.svgrepo.com/collection/big-data-and-web-analytics/
|
4 |
- Calcite Sharp Line Icons Collection (MIT License): https://www.svgrepo.com/collection/calcite-sharp-line-icons/
|
5 |
- Carbon Design Pictograms (Apache License): https://www.svgrepo.com/collection/carbon-design-pictograms/
|
6 |
+
- Communication 71 Collection (CC0 License): https://www.svgrepo.com/collection/communication-71/
|
7 |
+
- Denali Solid Interface Icons Collection (MIT License): https://www.svgrepo.com/collection/denali-solid-interface-icons/
|
8 |
- Flexicon Sharp Interface Glyphs (MIT License): https://www.svgrepo.com/collection/flexicon-sharp-interface-glyphs/
|
9 |
- Future Technology 2 (CC0 License): https://www.svgrepo.com/collection/future-technology-2/
|
10 |
- Network 7 (CC0 License): https://www.svgrepo.com/collection/network-7/
|
11 |
- Objects Infographic Icons (CC0 License): https://www.svgrepo.com/collection/objects-infographic-icons/
|
12 |
+
- Scientifics Study Collection (CC0 License): https://www.svgrepo.com/collection/scientifics-study/
|
13 |
+
- Vaadin Flat Vectors Collection (Apache License): https://www.svgrepo.com/collection/vaadin-flat-vectors/
|
14 |
|
15 |
|
16 |
The specific icons used are:
|
|
|
32 |
https://www.svgrepo.com/download/450704/certificate.svg
|
33 |
https://www.svgrepo.com/download/451006/knowledge-graph.svg
|
34 |
https://www.svgrepo.com/download/451276/satellite-3.svg
|
35 |
+
https://www.svgrepo.com/download/32364/glasses.svg
|
36 |
+
https://www.svgrepo.com/download/42246/gloves.svg
|
37 |
+
https://www.svgrepo.com/download/127799/alien-head.svg
|
38 |
+
https://www.svgrepo.com/download/128855/pulse.svg
|
39 |
+
https://www.svgrepo.com/download/156615/brain.svg
|
40 |
+
https://www.svgrepo.com/download/108458/cardiogram.svg
|
41 |
+
https://www.svgrepo.com/download/7010/microscope.svg
|
42 |
+
https://www.svgrepo.com/download/5170/flask.svg
|
43 |
+
https://www.svgrepo.com/download/445375/stethoscope-solid.svg
|
44 |
+
https://www.svgrepo.com/download/286233/laptop.svg
|
45 |
+
https://www.svgrepo.com/download/286239/computer-tv.svg
|
46 |
+
https://www.svgrepo.com/download/286242/conversation.svg
|
47 |
+
https://www.svgrepo.com/download/286250/megaphone-loudspeaker.svg
|
48 |
+
https://www.svgrepo.com/download/286262/webcam-video-chat.svg
|
49 |
+
https://www.svgrepo.com/download/286243/microphone.svg
|
50 |
+
https://www.svgrepo.com/download/286283/morse-code.svg
|
51 |
+
https://www.svgrepo.com/download/286275/telemarketer-customer-service.svg
|
52 |
+
https://www.svgrepo.com/download/339144/doctor-patient.svg
|
53 |
+
https://www.svgrepo.com/download/339182/eye.svg
|
54 |
+
https://www.svgrepo.com/download/339203/finance-strategy.svg
|
55 |
+
https://www.svgrepo.com/download/339434/police.svg
|
56 |
+
https://www.svgrepo.com/download/339442/prescription.svg
|
57 |
+
https://www.svgrepo.com/download/339484/robotics.svg
|
58 |
+
https://www.svgrepo.com/download/339552/strategy.svg
|
59 |
+
https://www.svgrepo.com/download/339032/chart-t-sne.svg
|
60 |
+
https://www.svgrepo.com/download/339141/dna.svg
|
61 |
+
https://www.svgrepo.com/download/339194/farmer-02.svg
|
62 |
+
https://www.svgrepo.com/download/371555/stethoscope.svg
|