skytnt not-lain commited on
Commit
976cbb9
1 Parent(s): a0a563c

upload mixin weights (#3)

Browse files

- upload mixin weights (43f900433e97e87503906dbdad018ba7467b66d8)
- update readme (f559c9bd5eef0bf8de7f6a8cbab333738639e8b9)


Co-authored-by: Lain <not-lain@users.noreply.huggingface.co>

Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +19 -3
  3. config.json +5 -0
  4. model.safetensors +3 -0
.gitattributes CHANGED
@@ -30,3 +30,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
  *.zst filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
  *.ckpt filter=lfs diff=lfs merge=lfs -text
 
 
30
  *.zst filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
  *.ckpt filter=lfs diff=lfs merge=lfs -text
33
+ model.safetensors filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,7 +1,23 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
3
  ---
4
 
5
- ## Anime Segmentation Models
 
6
 
7
- models of [https://github.com/SkyTNT/anime-segmentation](https://github.com/SkyTNT/anime-segmentation)
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: anime_segmentation
3
+ tags:
4
+ - image-segmentation
5
+ - model_hub_mixin
6
+ - pytorch_model_hub_mixin
7
  ---
8
 
9
+ This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
10
+ - Library: https://github.com/SkyTNT/anime-segmentation
11
 
12
+ ## How to load the model
13
+ ```
14
+ wget https://raw.githubusercontent.com/SkyTNT/anime-segmentation/refs/heads/main/train.py
15
+ ```
16
+ ```
17
+ pip install pytorch_lightning kornia timm "huggingface_hub>=0.22"
18
+ ```
19
+
20
+ ```python
21
+ from train import AnimeSegmentation
22
+ model = AnimeSegmentation.from_pretrained("skytnt/anime-seg")
23
+ ```
config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "img_size": 640,
3
+ "lr": 0.001,
4
+ "net_name": "isnet_is"
5
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3351563ba8b61a01a66bacb79cf36aabce2da62d88b7606a719f573f23fe5d3e
3
+ size 203982056