yeyingjin commited on
Commit
bb92644
·
verified ·
1 Parent(s): 8fe8dd9

Count downloads of the weight files

Browse files

Updated: the code loads one subfolder (`--model-subfolder HNM/main`), which never requests a root `config.json`, so the first version of this PR would still count 0. The PR now sets `library_name: diffusion-single-file`, whose rule counts `.safetensors` downloads, and removes `config.json`. Note: a run that loads `model.safetensors` and `text/control_text.safetensors` counts 2.

已更新:代码只加载一个子文件夹(--model-subfolder HNM/main),不会请求根目录的 config.json,原来的改法合并后还是 0。现在改成 library_name: diffusion-single-file(按 .safetensors 的下载计数),并删掉 config.json。注意:一次运行会加载 model.safetensors 和 text/control_text.safetensors,算 2 次。

Files changed (2) hide show
  1. README.md +1 -0
  2. config.json +0 -4
README.md CHANGED
@@ -3,6 +3,7 @@ license: cc-by-nc-4.0
3
  language:
4
  - en
5
  pretty_name: ReactiveGWM v2 Models (HNM / SF3)
 
6
  pipeline_tag: image-to-video
7
  tags:
8
  - video
 
3
  language:
4
  - en
5
  pretty_name: ReactiveGWM v2 Models (HNM / SF3)
6
+ library_name: diffusion-single-file
7
  pipeline_tag: image-to-video
8
  tags:
9
  - video
config.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "name": "ReactiveGWM-v2",
3
- "note": "Metadata only. Hugging Face counts model downloads through this file; please keep it."
4
- }