neggles commited on
Commit
d636ed0
1 Parent(s): 1506154

update readme etc

Browse files
Files changed (6) hide show
  1. .editorconfig +34 -0
  2. .gitattributes +1 -0
  3. .gitignore +253 -0
  4. .vscode/settings.json +94 -0
  5. LICENSE.md +25 -0
  6. README.md +12 -6
.editorconfig ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = space
7
+ indent_size = 4
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+ charset = utf-8
11
+ end_of_line = lf
12
+
13
+ [*.bat]
14
+ indent_style = tab
15
+ end_of_line = crlf
16
+
17
+ [*.{json,jsonc}]
18
+ indent_style = space
19
+ indent_size = 2
20
+
21
+ [.vscode/*.{json,jsonc}]
22
+ indent_style = space
23
+ indent_size = 4
24
+
25
+ [*.{yml,yaml,toml}]
26
+ indent_style = space
27
+ indent_size = 2
28
+
29
+ [*.md]
30
+ trim_trailing_whitespace = false
31
+
32
+ [Makefile]
33
+ indent_style = tab
34
+ indent_size = 8
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.png filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Created by https://www.toptal.com/developers/gitignore/api/linux,windows,macos,visualstudiocode,python
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=linux,windows,macos,visualstudiocode,python
3
+
4
+ ### Linux ###
5
+ *~
6
+
7
+ # temporary files which can be created if a process still has a handle open of a deleted file
8
+ .fuse_hidden*
9
+
10
+ # KDE directory preferences
11
+ .directory
12
+
13
+ # Linux trash folder which might appear on any partition or disk
14
+ .Trash-*
15
+
16
+ # .nfs files are created when an open file is removed but is still being accessed
17
+ .nfs*
18
+
19
+ ### macOS ###
20
+ # General
21
+ .DS_Store
22
+ .AppleDouble
23
+ .LSOverride
24
+
25
+ # Icon must end with two \r
26
+ Icon
27
+
28
+
29
+ # Thumbnails
30
+ ._*
31
+
32
+ # Files that might appear in the root of a volume
33
+ .DocumentRevisions-V100
34
+ .fseventsd
35
+ .Spotlight-V100
36
+ .TemporaryItems
37
+ .Trashes
38
+ .VolumeIcon.icns
39
+ .com.apple.timemachine.donotpresent
40
+
41
+ # Directories potentially created on remote AFP share
42
+ .AppleDB
43
+ .AppleDesktop
44
+ Network Trash Folder
45
+ Temporary Items
46
+ .apdisk
47
+
48
+ ### Python ###
49
+ # Byte-compiled / optimized / DLL files
50
+ __pycache__/
51
+ *.py[cod]
52
+ *$py.class
53
+
54
+ # C extensions
55
+ *.so
56
+
57
+ # Distribution / packaging
58
+ .Python
59
+ build/
60
+ develop-eggs/
61
+ dist/
62
+ downloads/
63
+ eggs/
64
+ .eggs/
65
+ lib/
66
+ lib64/
67
+ parts/
68
+ sdist/
69
+ var/
70
+ wheels/
71
+ share/python-wheels/
72
+ *.egg-info/
73
+ .installed.cfg
74
+ *.egg
75
+ MANIFEST
76
+
77
+ # PyInstaller
78
+ # Usually these files are written by a python script from a template
79
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
80
+ *.manifest
81
+ *.spec
82
+
83
+ # Installer logs
84
+ pip-log.txt
85
+ pip-delete-this-directory.txt
86
+
87
+ # Unit test / coverage reports
88
+ htmlcov/
89
+ .tox/
90
+ .nox/
91
+ .coverage
92
+ .coverage.*
93
+ .cache
94
+ nosetests.xml
95
+ coverage.xml
96
+ *.cover
97
+ *.py,cover
98
+ .hypothesis/
99
+ .pytest_cache/
100
+ cover/
101
+
102
+ # Translations
103
+ *.mo
104
+ *.pot
105
+
106
+ # Django stuff:
107
+ *.log
108
+ local_settings.py
109
+ db.sqlite3
110
+ db.sqlite3-journal
111
+
112
+ # Flask stuff:
113
+ instance/
114
+ .webassets-cache
115
+
116
+ # Scrapy stuff:
117
+ .scrapy
118
+
119
+ # Sphinx documentation
120
+ docs/_build/
121
+
122
+ # PyBuilder
123
+ .pybuilder/
124
+ target/
125
+
126
+ # Jupyter Notebook
127
+ .ipynb_checkpoints
128
+
129
+ # IPython
130
+ profile_default/
131
+ ipython_config.py
132
+
133
+ # pyenv
134
+ # For a library or package, you might want to ignore these files since the code is
135
+ # intended to run in multiple environments; otherwise, check them in:
136
+ # .python-version
137
+
138
+ # pipenv
139
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
140
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
141
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
142
+ # install all needed dependencies.
143
+ #Pipfile.lock
144
+
145
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
146
+ __pypackages__/
147
+
148
+ # Celery stuff
149
+ celerybeat-schedule
150
+ celerybeat.pid
151
+
152
+ # SageMath parsed files
153
+ *.sage.py
154
+
155
+ # Environments
156
+ .env
157
+ .venv
158
+ env/
159
+ venv/
160
+ ENV/
161
+ env.bak/
162
+ venv.bak/
163
+
164
+ # Spyder project settings
165
+ .spyderproject
166
+ .spyproject
167
+
168
+ # Rope project settings
169
+ .ropeproject
170
+
171
+ # mkdocs documentation
172
+ /site
173
+
174
+ # mypy
175
+ .mypy_cache/
176
+ .dmypy.json
177
+ dmypy.json
178
+
179
+ # Pyre type checker
180
+ .pyre/
181
+
182
+ # pytype static type analyzer
183
+ .pytype/
184
+
185
+ # Cython debug symbols
186
+ cython_debug/
187
+
188
+ ### VisualStudioCode ###
189
+ .vscode/*
190
+ !.vscode/settings.json
191
+ !.vscode/tasks.json
192
+ !.vscode/launch.json
193
+ !.vscode/extensions.json
194
+ *.code-workspace
195
+
196
+ # Local History for Visual Studio Code
197
+ .history/
198
+
199
+ ### VisualStudioCode Patch ###
200
+ # Ignore all local history of files
201
+ .history
202
+ .ionide
203
+
204
+ ### Windows ###
205
+ # Windows thumbnail cache files
206
+ Thumbs.db
207
+ Thumbs.db:encryptable
208
+ ehthumbs.db
209
+ ehthumbs_vista.db
210
+
211
+ # Dump file
212
+ *.stackdump
213
+
214
+ # Folder config file
215
+ [Dd]esktop.ini
216
+
217
+ # Recycle Bin used on file shares
218
+ $RECYCLE.BIN/
219
+
220
+ # Windows Installer files
221
+ *.cab
222
+ *.msi
223
+ *.msix
224
+ *.msm
225
+ *.msp
226
+
227
+ # Windows shortcuts
228
+ *.lnk
229
+
230
+ # End of https://www.toptal.com/developers/gitignore/api/linux,windows,macos,visualstudiocode,python
231
+
232
+ # temp and misc
233
+ /misc/
234
+ /temp/
235
+
236
+ # outputs and such
237
+ /logs/
238
+ /cache/
239
+
240
+ # direnv
241
+ .envrc
242
+ .envrc.*
243
+
244
+ # dotenv
245
+ .env
246
+ .env.*
247
+
248
+ # temp files
249
+ **/tmp_*.*
250
+ **/*.tmp.*
251
+
252
+ # but keep examples
253
+ !*.example
.vscode/settings.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "editor.insertSpaces": true,
3
+ "editor.tabSize": 4,
4
+ "files.trimTrailingWhitespace": true,
5
+ "editor.rulers": [100, 120],
6
+
7
+ "files.associations": {
8
+ "*.yaml": "yaml"
9
+ },
10
+ "files.exclude": {
11
+ "**/.git": true,
12
+ "**/.svn": true,
13
+ "**/.hg": true,
14
+ "**/CVS": true,
15
+ "**/.DS_Store": true,
16
+ "**/Thumbs.db": true,
17
+ "**/.ruff_cache": true,
18
+ "**/__pycache__": true,
19
+ "**/*.egg-info": true
20
+ },
21
+
22
+ "[shellscript]": {
23
+ "files.eol": "\n",
24
+ "editor.tabSize": 4,
25
+ "editor.detectIndentation": false
26
+ },
27
+
28
+ "[python]": {
29
+ "editor.wordBasedSuggestions": "off",
30
+ "editor.formatOnSave": true,
31
+ "editor.defaultFormatter": "charliermarsh.ruff",
32
+ "editor.codeActionsOnSave": {
33
+ "source.organizeImports": "always"
34
+ }
35
+ },
36
+ "ruff.format.args": ["--line-length", "110"],
37
+
38
+ "[json]": {
39
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
40
+ "editor.detectIndentation": false,
41
+ "editor.formatOnSaveMode": "file",
42
+ "editor.formatOnSave": true,
43
+ "editor.tabSize": 2
44
+ },
45
+ "[jsonc]": {
46
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
47
+ "editor.detectIndentation": false,
48
+ "editor.formatOnSaveMode": "file",
49
+ "editor.formatOnSave": true,
50
+ "editor.tabSize": 2
51
+ },
52
+
53
+ "[toml]": {
54
+ "editor.tabSize": 2,
55
+ "editor.detectIndentation": false,
56
+ "editor.formatOnSave": true,
57
+ "editor.formatOnSaveMode": "file",
58
+ "editor.defaultFormatter": "tamasfe.even-better-toml",
59
+ "editor.rulers": [80, 100]
60
+ },
61
+ "evenBetterToml.formatter.columnWidth": 88,
62
+
63
+ "[yaml]": {
64
+ "editor.detectIndentation": false,
65
+ "editor.tabSize": 2,
66
+ "editor.formatOnSave": true,
67
+ "editor.formatOnSaveMode": "file",
68
+ "diffEditor.ignoreTrimWhitespace": false,
69
+ "editor.defaultFormatter": "redhat.vscode-yaml"
70
+ },
71
+ "yaml.format.bracketSpacing": true,
72
+ "yaml.format.proseWrap": "preserve",
73
+ "yaml.format.singleQuote": false,
74
+ "yaml.format.printWidth": 110,
75
+
76
+ "[hcl]": {
77
+ "editor.detectIndentation": false,
78
+ "editor.formatOnSave": true,
79
+ "editor.formatOnSaveMode": "file",
80
+ "editor.defaultFormatter": "fredwangwang.vscode-hcl-format"
81
+ },
82
+
83
+ "[markdown]": {
84
+ "files.trimTrailingWhitespace": false
85
+ },
86
+
87
+ "css.lint.validProperties": ["dock", "content-align", "content-justify"],
88
+ "[css]": {
89
+ "editor.formatOnSave": true
90
+ },
91
+
92
+ "remote.autoForwardPorts": false,
93
+ "remote.autoForwardPortsSource": "process"
94
+ }
LICENSE.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+ =====================
3
+
4
+ Copyright © 2024 Andi Powers-Holmes <aholmes@omnom.net>
5
+
6
+ Permission is hereby granted, free of charge, to any person
7
+ obtaining a copy of this software and associated documentation
8
+ files (the “Software”), to deal in the Software without
9
+ restriction, including without limitation the rights to use,
10
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the
12
+ Software is furnished to do so, subject to the following
13
+ conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25
+ OTHER DEALINGS IN THE SOFTWARE.
README.md CHANGED
@@ -1,13 +1,19 @@
1
  ---
2
- title: Wd Tagger Heatmap
3
  emoji: 📚
4
- colorFrom: gray
5
- colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.25.0
8
  app_file: app.py
9
- pinned: false
10
- license: apache-2.0
 
 
 
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
+ title: WD Tagger Heatmaps
3
  emoji: 📚
4
+ colorFrom: pink
5
+ colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 4.25.0
8
  app_file: app.py
9
+ pinned: true
10
+ license: MIT
11
+ preload_from_hub:
12
+ - SmilingWolf/wd-vit-tagger-v3 model.onnx,selected_tags.csv
13
+ models:
14
+ - SmilingWolf/wd-vit-tagger-v3
15
  ---
16
 
17
+ # wd-tagger-heatmap
18
+
19
+ This Space generates heatmaps from the WD Tagger v3 ViT model, showing which parts of the image contributed to the score of a particular tag.