jennyxue commited on
Commit
316014b
·
0 Parent(s):

Model files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +35 -0
  2. LICENSE +263 -0
  3. README.md +51 -0
  4. models/hf/BiRefNet/README.md +226 -0
  5. models/hf/BiRefNet/config.json +20 -0
  6. models/hf/BiRefNet/model.safetensors +3 -0
  7. models/hf/sam2.1-hiera-tiny/README.md +542 -0
  8. models/hf/sam2.1-hiera-tiny/config.json +233 -0
  9. models/hf/sam2.1-hiera-tiny/model.safetensors +3 -0
  10. models/hf/sam2.1-hiera-tiny/preprocessor_config.json +36 -0
  11. models/hf/sam2.1-hiera-tiny/processor_config.json +5 -0
  12. models/ort/unet_ft_ffhq/meta.json +158 -0
  13. models/ort/unet_ft_ffhq/model_b1.onnx +3 -0
  14. models/ort/unet_ft_ffhq/model_b2.onnx +3 -0
  15. models/ort/unet_ft_ffhq/weights.bin +3 -0
  16. models/ort/unet_ft_places2/meta.json +158 -0
  17. models/ort/unet_ft_places2/model_b1.onnx +3 -0
  18. models/ort/unet_ft_places2/model_b2.onnx +3 -0
  19. models/ort/unet_ft_places2/weights.bin +3 -0
  20. models/ort/unet_pretrained/meta.json +158 -0
  21. models/ort/unet_pretrained/model_b1.onnx +3 -0
  22. models/ort/unet_pretrained/model_b2.onnx +3 -0
  23. models/ort/unet_pretrained/weights.bin +3 -0
  24. models/ort/vae_fp16/decoder.onnx +3 -0
  25. models/ort/vae_fp16/encoder.onnx +3 -0
  26. models/ort/vae_fp16/meta.json +125 -0
  27. models/torch/maskrcnn_resnet50_fpn_v2_coco.safetensors +3 -0
  28. packs/moebius-ffhq/manifest.json +29 -0
  29. packs/moebius-ffhq/temb.npz +3 -0
  30. packs/moebius-ffhq/unet.safetensors +3 -0
  31. packs/moebius-general/coreml/vae_dec_vae.mlmodelc/analytics/coremldata.bin +3 -0
  32. packs/moebius-general/coreml/vae_dec_vae.mlmodelc/coremldata.bin +3 -0
  33. packs/moebius-general/coreml/vae_dec_vae.mlmodelc/model.mil +0 -0
  34. packs/moebius-general/coreml/vae_dec_vae.mlmodelc/weights/weight.bin +3 -0
  35. packs/moebius-general/coreml/vae_dec_vae.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  36. packs/moebius-general/coreml/vae_dec_vae.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  37. packs/moebius-general/coreml/vae_dec_vae.mlpackage/Manifest.json +18 -0
  38. packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/analytics/coremldata.bin +3 -0
  39. packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/coremldata.bin +3 -0
  40. packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/model.mil +0 -0
  41. packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/weights/weight.bin +3 -0
  42. packs/moebius-general/coreml/vae_enc_b1_vae.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  43. packs/moebius-general/coreml/vae_enc_b1_vae.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  44. packs/moebius-general/coreml/vae_enc_b1_vae.mlpackage/Manifest.json +18 -0
  45. packs/moebius-general/manifest.json +88 -0
  46. packs/moebius-general/temb.npz +3 -0
  47. packs/moebius-general/unet.safetensors +3 -0
  48. packs/moebius-general/vae.safetensors +3 -0
  49. packs/moebius-places2/manifest.json +29 -0
  50. packs/moebius-places2/temb.npz +3 -0
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
LICENSE ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Licences of the files in moonbox-dev/moebius
2
+
3
+ Each part of this repository keeps the licence of the work it was made from. The sections below say which parts each licence covers, with the notices to keep, followed by the licence's full text.
4
+
5
+ ====================================================================================================
6
+ Apache License 2.0
7
+ https://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Covers:
10
+ - Moebius 0.22B inpainting UNet, variant 'pretrained' (General)
11
+ Notice: Copyright 2024 Moebius Authors
12
+ - Moebius fine-tune 'ft_places2' (Scenes)
13
+ Notice: Copyright 2024 Moebius Authors
14
+ - Moebius fine-tune 'ft_ffhq' (Faces)
15
+ Notice: Copyright 2024 Moebius Authors
16
+ - the three UNets and the VAE as ONNX graphs, for the Windows engine
17
+ - SAM 2.1 Hiera Tiny, used to select objects (Windows engine)
18
+ Notice: Copyright (c) Meta Platforms, Inc. and affiliates
19
+ ====================================================================================================
20
+
21
+ Apache License
22
+ Version 2.0, January 2004
23
+ http://www.apache.org/licenses/
24
+
25
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
26
+
27
+ 1. Definitions.
28
+
29
+ "License" shall mean the terms and conditions for use, reproduction,
30
+ and distribution as defined by Sections 1 through 9 of this document.
31
+
32
+ "Licensor" shall mean the copyright owner or entity authorized by
33
+ the copyright owner that is granting the License.
34
+
35
+ "Legal Entity" shall mean the union of the acting entity and all
36
+ other entities that control, are controlled by, or are under common
37
+ control with that entity. For the purposes of this definition,
38
+ "control" means (i) the power, direct or indirect, to cause the
39
+ direction or management of such entity, whether by contract or
40
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
41
+ outstanding shares, or (iii) beneficial ownership of such entity.
42
+
43
+ "You" (or "Your") shall mean an individual or Legal Entity
44
+ exercising permissions granted by this License.
45
+
46
+ "Source" form shall mean the preferred form for making modifications,
47
+ including but not limited to software source code, documentation
48
+ source, and configuration files.
49
+
50
+ "Object" form shall mean any form resulting from mechanical
51
+ transformation or translation of a Source form, including but
52
+ not limited to compiled object code, generated documentation,
53
+ and conversions to other media types.
54
+
55
+ "Work" shall mean the work of authorship, whether in Source or
56
+ Object form, made available under the License, as indicated by a
57
+ copyright notice that is included in or attached to the work
58
+ (an example is provided in the Appendix below).
59
+
60
+ "Derivative Works" shall mean any work, whether in Source or Object
61
+ form, that is based on (or derived from) the Work and for which the
62
+ editorial revisions, annotations, elaborations, or other modifications
63
+ represent, as a whole, an original work of authorship. For the purposes
64
+ of this License, Derivative Works shall not include works that remain
65
+ separable from, or merely link (or bind by name) to the interfaces of,
66
+ the Work and Derivative Works thereof.
67
+
68
+ "Contribution" shall mean any work of authorship, including
69
+ the original version of the Work and any modifications or additions
70
+ to that Work or Derivative Works thereof, that is intentionally
71
+ submitted to Licensor for inclusion in the Work by the copyright owner
72
+ or by an individual or Legal Entity authorized to submit on behalf of
73
+ the copyright owner. For the purposes of this definition, "submitted"
74
+ means any form of electronic, verbal, or written communication sent
75
+ to the Licensor or its representatives, including but not limited to
76
+ communication on electronic mailing lists, source code control systems,
77
+ and issue tracking systems that are managed by, or on behalf of, the
78
+ Licensor for the purpose of discussing and improving the Work, but
79
+ excluding communication that is conspicuously marked or otherwise
80
+ designated in writing by the copyright owner as "Not a Contribution."
81
+
82
+ "Contributor" shall mean Licensor and any individual or Legal Entity
83
+ on behalf of whom a Contribution has been received by Licensor and
84
+ subsequently incorporated within the Work.
85
+
86
+ 2. Grant of Copyright License. Subject to the terms and conditions of
87
+ this License, each Contributor hereby grants to You a perpetual,
88
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
89
+ copyright license to reproduce, prepare Derivative Works of,
90
+ publicly display, publicly perform, sublicense, and distribute the
91
+ Work and such Derivative Works in Source or Object form.
92
+
93
+ 3. Grant of Patent License. Subject to the terms and conditions of
94
+ this License, each Contributor hereby grants to You a perpetual,
95
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
96
+ (except as stated in this section) patent license to make, have made,
97
+ use, offer to sell, sell, import, and otherwise transfer the Work,
98
+ where such license applies only to those patent claims licensable
99
+ by such Contributor that are necessarily infringed by their
100
+ Contribution(s) alone or by combination of their Contribution(s)
101
+ with the Work to which such Contribution(s) was submitted. If You
102
+ institute patent litigation against any entity (including a
103
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
104
+ or a Contribution incorporated within the Work constitutes direct
105
+ or contributory patent infringement, then any patent licenses
106
+ granted to You under this License for that Work shall terminate
107
+ as of the date such litigation is filed.
108
+
109
+ 4. Redistribution. You may reproduce and distribute copies of the
110
+ Work or Derivative Works thereof in any medium, with or without
111
+ modifications, and in Source or Object form, provided that You
112
+ meet the following conditions:
113
+
114
+ (a) You must give any other recipients of the Work or
115
+ Derivative Works a copy of this License; and
116
+
117
+ (b) You must cause any modified files to carry prominent notices
118
+ stating that You changed the files; and
119
+
120
+ (c) You must retain, in the Source form of any Derivative Works
121
+ that You distribute, all copyright, patent, trademark, and
122
+ attribution notices from the Source form of the Work,
123
+ excluding those notices that do not pertain to any part of
124
+ the Derivative Works; and
125
+
126
+ (d) If the Work includes a "NOTICE" text file as part of its
127
+ distribution, then any Derivative Works that You distribute must
128
+ include a readable copy of the attribution notices contained
129
+ within such NOTICE file, excluding those notices that do not
130
+ pertain to any part of the Derivative Works, in at least one
131
+ of the following places: within a NOTICE text file distributed
132
+ as part of the Derivative Works; within the Source form or
133
+ documentation, if provided along with the Derivative Works; or,
134
+ within a display generated by the Derivative Works, if and
135
+ wherever such third-party notices normally appear. The contents
136
+ of the NOTICE file are for informational purposes only and
137
+ do not modify the License. You may add Your own attribution
138
+ notices within Derivative Works that You distribute, alongside
139
+ or as an addendum to the NOTICE text from the Work, provided
140
+ that such additional attribution notices cannot be construed
141
+ as modifying the License.
142
+
143
+ You may add Your own copyright statement to Your modifications and
144
+ may provide additional or different license terms and conditions
145
+ for use, reproduction, or distribution of Your modifications, or
146
+ for any such Derivative Works as a whole, provided Your use,
147
+ reproduction, and distribution of the Work otherwise complies with
148
+ the conditions stated in this License.
149
+
150
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
151
+ any Contribution intentionally submitted for inclusion in the Work
152
+ by You to the Licensor shall be under the terms and conditions of
153
+ this License, without any additional terms or conditions.
154
+ Notwithstanding the above, nothing herein shall supersede or modify
155
+ the terms of any separate license agreement you may have executed
156
+ with Licensor regarding such Contributions.
157
+
158
+ 6. Trademarks. This License does not grant permission to use the trade
159
+ names, trademarks, service marks, or product names of the Licensor,
160
+ except as required for reasonable and customary use in describing the
161
+ origin of the Work and reproducing the content of the NOTICE file.
162
+
163
+ 7. Disclaimer of Warranty. Unless required by applicable law or
164
+ agreed to in writing, Licensor provides the Work (and each
165
+ Contributor provides its Contributions) on an "AS IS" BASIS,
166
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
167
+ implied, including, without limitation, any warranties or conditions
168
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
169
+ PARTICULAR PURPOSE. You are solely responsible for determining the
170
+ appropriateness of using or redistributing the Work and assume any
171
+ risks associated with Your exercise of permissions under this License.
172
+
173
+ 8. Limitation of Liability. In no event and under no legal theory,
174
+ whether in tort (including negligence), contract, or otherwise,
175
+ unless required by applicable law (such as deliberate and grossly
176
+ negligent acts) or agreed to in writing, shall any Contributor be
177
+ liable to You for damages, including any direct, indirect, special,
178
+ incidental, or consequential damages of any character arising as a
179
+ result of this License or out of the use or inability to use the
180
+ Work (including but not limited to damages for loss of goodwill,
181
+ work stoppage, computer failure or malfunction, or any and all
182
+ other commercial damages or losses), even if such Contributor
183
+ has been advised of the possibility of such damages.
184
+
185
+ 9. Accepting Warranty or Additional Liability. While redistributing
186
+ the Work or Derivative Works thereof, You may choose to offer,
187
+ and charge a fee for, acceptance of support, warranty, indemnity,
188
+ or other liability obligations and/or rights consistent with this
189
+ License. However, in accepting such obligations, You may act only
190
+ on Your own behalf and on Your sole responsibility, not on behalf
191
+ of any other Contributor, and only if You agree to indemnify,
192
+ defend, and hold each Contributor harmless for any liability
193
+ incurred by, or claims asserted against, such Contributor by reason
194
+ of your accepting any such warranty or additional liability.
195
+
196
+ ====================================================================================================
197
+ MIT License
198
+ https://opensource.org/license/mit
199
+
200
+ Covers:
201
+ - PixelHacker VAE (frozen SDXL VAE), fp16 + Core ML
202
+ Notice: PixelHacker authors (HUST Vision Lab); the SDXL VAE is Copyright (c) Stability AI, MIT
203
+ - the three UNets and the VAE as ONNX graphs, for the Windows engine
204
+ - BiRefNet, used to select a picture's subject (Windows engine)
205
+ Notice: Copyright (c) 2024 ZhengPeng
206
+ ====================================================================================================
207
+
208
+ MIT License
209
+
210
+
211
+ Permission is hereby granted, free of charge, to any person obtaining a copy
212
+ of this software and associated documentation files (the "Software"), to deal
213
+ in the Software without restriction, including without limitation the rights
214
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
215
+ copies of the Software, and to permit persons to whom the Software is
216
+ furnished to do so, subject to the following conditions:
217
+
218
+ The above copyright notice and this permission notice shall be included in all
219
+ copies or substantial portions of the Software.
220
+
221
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
222
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
223
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
224
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
225
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
226
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
227
+ SOFTWARE.
228
+
229
+ ====================================================================================================
230
+ BSD 3-Clause License
231
+ https://opensource.org/license/bsd-3-clause
232
+
233
+ Covers:
234
+ - torchvision's Mask R-CNN (ResNet-50 FPN v2, COCO) weights as safetensors (Windows engine)
235
+ Notice: Copyright (c) Soumith Chintala 2016, all rights reserved
236
+ ====================================================================================================
237
+
238
+ Redistribution and use in source and binary forms, with or without
239
+ modification, are permitted provided that the following conditions are
240
+ met:
241
+
242
+ 1. Redistributions of source code must retain the above copyright
243
+ notice, this list of conditions and the following disclaimer.
244
+
245
+ 2. Redistributions in binary form must reproduce the above copyright
246
+ notice, this list of conditions and the following disclaimer in the
247
+ documentation and/or other materials provided with the distribution.
248
+
249
+ 3. Neither the name of the copyright holder nor the names of its
250
+ contributors may be used to endorse or promote products derived from
251
+ this software without specific prior written permission.
252
+
253
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
254
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
255
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
256
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
257
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
258
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
259
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
260
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
261
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
262
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
263
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - hustvl/Moebius
5
+ library_name: mlx
6
+ pipeline_tag: image-to-image
7
+ tags:
8
+ - mlx
9
+ - moonbox
10
+ - inpainting
11
+ ---
12
+
13
+ # Moebius for Moonbox
14
+
15
+ The files the [Moonbox](https://moonbox.dev) desktop app downloads for these models:
16
+
17
+ - **Moebius** (HUST Vision Lab): Removes objects and repairs damage; everything outside the brushed area stays as it was.
18
+
19
+ They are the Moebius inpainting UNets (General, Scenes, Faces) and their VAE converted to MLX and Core ML for Apple silicon. Moonbox checks every file against a signed list before using it. You do not need this repository to use Moonbox, and it is not an official release of the original models.
20
+
21
+ ## What is here
22
+
23
+ | Path | What | From |
24
+ |---|---|---|
25
+ | `packs/moebius-general/unet.safetensors`, `packs/moebius-general/temb.npz`, `packs/moebius-general/manifest.json` | Moebius 0.22B inpainting UNet, variant 'pretrained' (General) | https://huggingface.co/hustvl/Moebius (pretrained/) |
26
+ | `packs/moebius-places2/` | Moebius fine-tune 'ft_places2' (Scenes) | https://huggingface.co/hustvl/Moebius (ft_places2/) |
27
+ | `packs/moebius-ffhq/` | Moebius fine-tune 'ft_ffhq' (Faces) | https://huggingface.co/hustvl/Moebius (ft_ffhq/) |
28
+ | `packs/moebius-general/vae.safetensors`, `packs/moebius-general/coreml/` | PixelHacker VAE (frozen SDXL VAE), fp16 + Core ML | https://huggingface.co/hustvl/PixelHacker (vae/) |
29
+ | `models/ort/` | the three UNets and the VAE as ONNX graphs, for the Windows engine | https://huggingface.co/hustvl/Moebius, https://huggingface.co/hustvl/PixelHacker |
30
+ | `models/hf/BiRefNet/` | BiRefNet, used to select a picture's subject (Windows engine) | https://huggingface.co/ZhengPeng7/BiRefNet |
31
+ | `models/hf/sam2.1-hiera-tiny/` | SAM 2.1 Hiera Tiny, used to select objects (Windows engine) | https://huggingface.co/facebook/sam2.1-hiera-tiny |
32
+ | `models/torch/maskrcnn_resnet50_fpn_v2_coco.safetensors` | torchvision's Mask R-CNN (ResNet-50 FPN v2, COCO) weights as safetensors (Windows engine) | https://github.com/pytorch/vision |
33
+
34
+ Every part was converted, quantized or repackaged from its source unless its row says "as published": treat none of these files as the original release.
35
+
36
+ ## Licences
37
+
38
+ The Scenes and Faces fine-tunes were trained by their authors on Places2 and FFHQ, datasets released for research and non-commercial use; BiRefNet's general weights were trained on DIS5K, also non-commercial. The weights carry the licences below; whether the training data matters for your use is yours to judge.
39
+
40
+ | Part | Licence | Notice |
41
+ |---|---|---|
42
+ | Moebius 0.22B inpainting UNet, variant 'pretrained' (General) | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) | Copyright 2024 Moebius Authors |
43
+ | Moebius fine-tune 'ft_places2' (Scenes) | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) | Copyright 2024 Moebius Authors |
44
+ | Moebius fine-tune 'ft_ffhq' (Faces) | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) | Copyright 2024 Moebius Authors |
45
+ | PixelHacker VAE (frozen SDXL VAE), fp16 + Core ML | [MIT License](https://opensource.org/license/mit) | PixelHacker authors (HUST Vision Lab); the SDXL VAE is Copyright (c) Stability AI, MIT |
46
+ | the three UNets and the VAE as ONNX graphs, for the Windows engine | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0); [MIT License](https://opensource.org/license/mit) | |
47
+ | BiRefNet, used to select a picture's subject (Windows engine) | [MIT License](https://opensource.org/license/mit) | Copyright (c) 2024 ZhengPeng |
48
+ | SAM 2.1 Hiera Tiny, used to select objects (Windows engine) | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) | Copyright (c) Meta Platforms, Inc. and affiliates |
49
+ | torchvision's Mask R-CNN (ResNet-50 FPN v2, COCO) weights as safetensors (Windows engine) | [BSD 3-Clause License](https://opensource.org/license/bsd-3-clause) | Copyright (c) Soumith Chintala 2016, all rights reserved |
50
+
51
+ The full text of each licence is in [LICENSE](LICENSE). The models are the work of their authors, linked above. Moonbox converted and packaged them and claims no rights in them. Use is subject to each licence above.
models/hf/BiRefNet/README.md ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: birefnet
3
+ tags:
4
+ - background-removal
5
+ - mask-generation
6
+ - Dichotomous Image Segmentation
7
+ - Camouflaged Object Detection
8
+ - Salient Object Detection
9
+ - pytorch_model_hub_mixin
10
+ - model_hub_mixin
11
+ - transformers
12
+ repo_url: https://github.com/ZhengPeng7/BiRefNet
13
+ pipeline_tag: image-segmentation
14
+ license: mit
15
+ ---
16
+ <h1 align="center">Bilateral Reference for High-Resolution Dichotomous Image Segmentation</h1>
17
+
18
+ <div align='center'>
19
+ <a href='https://scholar.google.com/citations?user=TZRzWOsAAAAJ' target='_blank'><strong>Peng Zheng</strong></a><sup> 1,4,5,6</sup>,&thinsp;
20
+ <a href='https://scholar.google.com/citations?user=0uPb8MMAAAAJ' target='_blank'><strong>Dehong Gao</strong></a><sup> 2</sup>,&thinsp;
21
+ <a href='https://scholar.google.com/citations?user=kakwJ5QAAAAJ' target='_blank'><strong>Deng-Ping Fan</strong></a><sup> 1*</sup>,&thinsp;
22
+ <a href='https://scholar.google.com/citations?user=9cMQrVsAAAAJ' target='_blank'><strong>Li Liu</strong></a><sup> 3</sup>,&thinsp;
23
+ <a href='https://scholar.google.com/citations?user=qQP6WXIAAAAJ' target='_blank'><strong>Jorma Laaksonen</strong></a><sup> 4</sup>,&thinsp;
24
+ <a href='https://scholar.google.com/citations?user=pw_0Z_UAAAAJ' target='_blank'><strong>Wanli Ouyang</strong></a><sup> 5</sup>,&thinsp;
25
+ <a href='https://scholar.google.com/citations?user=stFCYOAAAAAJ' target='_blank'><strong>Nicu Sebe</strong></a><sup> 6</sup>
26
+ </div>
27
+
28
+ <div align='center'>
29
+ <sup>1 </sup>Nankai University&ensp; <sup>2 </sup>Northwestern Polytechnical University&ensp; <sup>3 </sup>National University of Defense Technology&ensp; <sup>4 </sup>Aalto University&ensp; <sup>5 </sup>Shanghai AI Laboratory&ensp; <sup>6 </sup>University of Trento&ensp;
30
+ </div>
31
+
32
+ <div align="center" style="display: flex; justify-content: center; flex-wrap: wrap;">
33
+ <a href='https://www.sciopen.com/article/pdf/10.26599/AIR.2024.9150038.pdf'><img src='https://img.shields.io/badge/Journal-Paper-red'></a>&ensp;
34
+ <a href='https://arxiv.org/pdf/2401.03407'><img src='https://img.shields.io/badge/arXiv-BiRefNet-red'></a>&ensp;
35
+ <a href='https://drive.google.com/file/d/1aBnJ_R9lbnC2dm8dqD0-pzP2Cu-U1Xpt/view?usp=drive_link'><img src='https://img.shields.io/badge/中文版-BiRefNet-red'></a>&ensp;
36
+ <a href='https://www.birefnet.top'><img src='https://img.shields.io/badge/Page-BiRefNet-red'></a>&ensp;
37
+ <a href='https://drive.google.com/drive/folders/1s2Xe0cjq-2ctnJBR24563yMSCOu4CcxM'><img src='https://img.shields.io/badge/Drive-Stuff-green'></a>&ensp;
38
+ <a href='LICENSE'><img src='https://img.shields.io/badge/License-MIT-yellow'></a>&ensp;
39
+ <a href='https://huggingface.co/spaces/ZhengPeng7/BiRefNet_demo'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20HF%20Spaces-BiRefNet-blue'></a>&ensp;
40
+ <a href='https://huggingface.co/ZhengPeng7/BiRefNet'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20HF%20Models-BiRefNet-blue'></a>&ensp;
41
+ <a href='https://colab.research.google.com/drive/14Dqg7oeBkFEtchaHLNpig2BcdkZEogba?usp=drive_link'><img src='https://img.shields.io/badge/Single_Image_Inference-F9AB00?style=for-the-badge&logo=googlecolab&color=525252'></a>&ensp;
42
+ <a href='https://colab.research.google.com/drive/1MaEiBfJ4xIaZZn0DqKrhydHB8X97hNXl#scrollTo=DJ4meUYjia6S'><img src='https://img.shields.io/badge/Inference_&_Evaluation-F9AB00?style=for-the-badge&logo=googlecolab&color=525252'></a>&ensp;
43
+ </div>
44
+
45
+
46
+ | *DIS-Sample_1* | *DIS-Sample_2* |
47
+ | :------------------------------: | :-------------------------------: |
48
+ | <img src="https://drive.google.com/thumbnail?id=1ItXaA26iYnE8XQ_GgNLy71MOWePoS2-g&sz=w400" /> | <img src="https://drive.google.com/thumbnail?id=1Z-esCujQF_uEa_YJjkibc3NUrW4aR_d4&sz=w400" /> |
49
+
50
+ This repo is the official implementation of "[**Bilateral Reference for High-Resolution Dichotomous Image Segmentation**](https://arxiv.org/pdf/2401.03407.pdf)" (___CAAI AIR 2024___).
51
+
52
+ Visit our GitHub repo: [https://github.com/ZhengPeng7/BiRefNet](https://github.com/ZhengPeng7/BiRefNet) for more details -- **codes**, **docs**, and **model zoo**!
53
+
54
+ ## How to use
55
+
56
+ ### 0. Install Packages:
57
+ ```
58
+ pip install -qr https://raw.githubusercontent.com/ZhengPeng7/BiRefNet/main/requirements.txt
59
+ ```
60
+
61
+ ### 1. Load BiRefNet:
62
+
63
+ #### Use codes + weights from HuggingFace
64
+ > Only use the weights on HuggingFace -- Pro: No need to download BiRefNet codes manually; Con: Codes on HuggingFace might not be latest version (I'll try to keep them always latest).
65
+
66
+ ```python
67
+ # Load BiRefNet with weights
68
+ from transformers import AutoModelForImageSegmentation
69
+ birefnet = AutoModelForImageSegmentation.from_pretrained('ZhengPeng7/BiRefNet', trust_remote_code=True)
70
+ ```
71
+
72
+ #### Use codes from GitHub + weights from HuggingFace
73
+ > Only use the weights on HuggingFace -- Pro: codes are always latest; Con: Need to clone the BiRefNet repo from my GitHub.
74
+
75
+ ```shell
76
+ # Download codes
77
+ git clone https://github.com/ZhengPeng7/BiRefNet.git
78
+ cd BiRefNet
79
+ ```
80
+
81
+ ```python
82
+ # Use codes locally
83
+ from models.birefnet import BiRefNet
84
+
85
+ # Load weights from Hugging Face Models
86
+ birefnet = BiRefNet.from_pretrained('ZhengPeng7/BiRefNet')
87
+ ```
88
+
89
+ #### Use codes from GitHub + weights from local space
90
+ > Only use the weights and codes both locally.
91
+
92
+ ```python
93
+ # Use codes and weights locally
94
+ import torch
95
+ from utils import check_state_dict
96
+
97
+ birefnet = BiRefNet(bb_pretrained=False)
98
+ state_dict = torch.load(PATH_TO_WEIGHT, map_location='cpu')
99
+ state_dict = check_state_dict(state_dict)
100
+ birefnet.load_state_dict(state_dict)
101
+ ```
102
+
103
+ #### Use the loaded BiRefNet for inference
104
+ ```python
105
+ # Imports
106
+ from PIL import Image
107
+ import matplotlib.pyplot as plt
108
+ import torch
109
+ from torchvision import transforms
110
+ from models.birefnet import BiRefNet
111
+
112
+ birefnet = ... # -- BiRefNet should be loaded with codes above, either way.
113
+ torch.set_float32_matmul_precision(['high', 'highest'][0])
114
+ birefnet.to('cuda')
115
+ birefnet.eval()
116
+ birefnet.half()
117
+
118
+ def extract_object(birefnet, imagepath):
119
+ # Data settings
120
+ image_size = (1024, 1024)
121
+ transform_image = transforms.Compose([
122
+ transforms.Resize(image_size),
123
+ transforms.ToTensor(),
124
+ transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])
125
+ ])
126
+
127
+ image = Image.open(imagepath)
128
+ input_images = transform_image(image).unsqueeze(0).to('cuda').half()
129
+
130
+ # Prediction
131
+ with torch.no_grad():
132
+ preds = birefnet(input_images)[-1].sigmoid().cpu()
133
+ pred = preds[0].squeeze()
134
+ pred_pil = transforms.ToPILImage()(pred)
135
+ mask = pred_pil.resize(image.size)
136
+ image.putalpha(mask)
137
+ return image, mask
138
+
139
+ # Visualization
140
+ plt.axis("off")
141
+ plt.imshow(extract_object(birefnet, imagepath='PATH-TO-YOUR_IMAGE.jpg')[0])
142
+ plt.show()
143
+
144
+ ```
145
+
146
+ ### 2. Use inference endpoint locally:
147
+ > You may need to click the *deploy* and set up the endpoint by yourself, which would make some costs.
148
+ ```
149
+ import requests
150
+ import base64
151
+ from io import BytesIO
152
+ from PIL import Image
153
+
154
+
155
+ YOUR_HF_TOKEN = 'xxx'
156
+ API_URL = "xxx"
157
+ headers = {
158
+ "Authorization": "Bearer {}".format(YOUR_HF_TOKEN)
159
+ }
160
+
161
+ def base64_to_bytes(base64_string):
162
+ # Remove the data URI prefix if present
163
+ if "data:image" in base64_string:
164
+ base64_string = base64_string.split(",")[1]
165
+
166
+ # Decode the Base64 string into bytes
167
+ image_bytes = base64.b64decode(base64_string)
168
+ return image_bytes
169
+
170
+ def bytes_to_base64(image_bytes):
171
+ # Create a BytesIO object to handle the image data
172
+ image_stream = BytesIO(image_bytes)
173
+
174
+ # Open the image using Pillow (PIL)
175
+ image = Image.open(image_stream)
176
+ return image
177
+
178
+ def query(payload):
179
+ response = requests.post(API_URL, headers=headers, json=payload)
180
+ return response.json()
181
+
182
+ output = query({
183
+ "inputs": "https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg",
184
+ "parameters": {}
185
+ })
186
+
187
+ output_image = bytes_to_base64(base64_to_bytes(output))
188
+ output_image
189
+ ```
190
+
191
+
192
+ > This BiRefNet for standard dichotomous image segmentation (DIS) is trained on **DIS-TR** and validated on **DIS-TEs and DIS-VD**.
193
+
194
+ ## This repo holds the official model weights of "[<ins>Bilateral Reference for High-Resolution Dichotomous Image Segmentation</ins>](https://arxiv.org/pdf/2401.03407)" (_CAAI AIR 2024_).
195
+
196
+ This repo contains the weights of BiRefNet proposed in our paper, which has achieved the SOTA performance on three tasks (DIS, HRSOD, and COD).
197
+
198
+ Go to my GitHub page for BiRefNet codes and the latest updates: https://github.com/ZhengPeng7/BiRefNet :)
199
+
200
+
201
+ #### Try our online demos for inference:
202
+
203
+ + Online **Image Inference** on Colab: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/14Dqg7oeBkFEtchaHLNpig2BcdkZEogba?usp=drive_link)
204
+ + **Online Inference with GUI on Hugging Face** with adjustable resolutions: [![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/ZhengPeng7/BiRefNet_demo)
205
+ + **Inference and evaluation** of your given weights: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1MaEiBfJ4xIaZZn0DqKrhydHB8X97hNXl#scrollTo=DJ4meUYjia6S)
206
+ <img src="https://drive.google.com/thumbnail?id=12XmDhKtO1o2fEvBu4OE4ULVB2BK0ecWi&sz=w1080" />
207
+
208
+ ## Acknowledgement:
209
+
210
+ + Many thanks to @Freepik for their generous support on GPU resources for training higher resolution BiRefNet models and more of my explorations.
211
+ + Many thanks to @fal for their generous support on GPU resources for training better general BiRefNet models.
212
+ + Many thanks to @not-lain for his help on the better deployment of our BiRefNet model on HuggingFace.
213
+
214
+
215
+ ## Citation
216
+
217
+ ```
218
+ @article{zheng2024birefnet,
219
+ title={Bilateral Reference for High-Resolution Dichotomous Image Segmentation},
220
+ author={Zheng, Peng and Gao, Dehong and Fan, Deng-Ping and Liu, Li and Laaksonen, Jorma and Ouyang, Wanli and Sebe, Nicu},
221
+ journal={CAAI Artificial Intelligence Research},
222
+ volume = {3},
223
+ pages = {9150038},
224
+ year={2024}
225
+ }
226
+ ```
models/hf/BiRefNet/config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ZhengPeng7/BiRefNet",
3
+ "architectures": [
4
+ "BiRefNet"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "BiRefNet_config.BiRefNetConfig",
8
+ "AutoModelForImageSegmentation": "birefnet.BiRefNet"
9
+ },
10
+ "custom_pipelines": {
11
+ "image-segmentation": {
12
+ "pt": [
13
+ "AutoModelForImageSegmentation"
14
+ ],
15
+ "tf": [],
16
+ "type": "image"
17
+ }
18
+ },
19
+ "bb_pretrained": false
20
+ }
models/hf/BiRefNet/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ab37426bf4de0567af6b5d21b16151357149139362e6e8992021b8ce356a154
3
+ size 444473596
models/hf/sam2.1-hiera-tiny/README.md ADDED
@@ -0,0 +1,542 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: mask-generation
4
+ library_name: transformers
5
+ ---
6
+
7
+ Repository for SAM 2: Segment Anything in Images and Videos, a foundation model towards solving promptable visual segmentation in images and videos from FAIR. See the [SAM 2 paper](https://arxiv.org/abs/2408.00714) for more information.
8
+
9
+ The official code is publicly release in this [repo](https://github.com/facebookresearch/segment-anything-2/).
10
+
11
+ ## Usage
12
+
13
+ For image prediction:
14
+
15
+ ```python
16
+ import torch
17
+ from sam2.sam2_image_predictor import SAM2ImagePredictor
18
+
19
+ predictor = SAM2ImagePredictor.from_pretrained("facebook/sam2.1-hiera-tiny")
20
+
21
+ with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
22
+ predictor.set_image(<your_image>)
23
+ masks, _, _ = predictor.predict(<input_prompts>)
24
+ ```
25
+
26
+ For video prediction:
27
+
28
+ ```python
29
+ import torch
30
+ from sam2.sam2_video_predictor import SAM2VideoPredictor
31
+
32
+ predictor = SAM2VideoPredictor.from_pretrained("facebook/sam2.1-hiera-tiny")
33
+
34
+ with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
35
+ state = predictor.init_state(<your_video>)
36
+
37
+ # add new prompts and instantly get the output on the same frame
38
+ frame_idx, object_ids, masks = predictor.add_new_points_or_box(state, <your_prompts>):
39
+
40
+ # propagate the prompts to get masklets throughout the video
41
+ for frame_idx, object_ids, masks in predictor.propagate_in_video(state):
42
+ ...
43
+ ```
44
+
45
+ Refer to the [demo notebooks](https://github.com/facebookresearch/segment-anything-2/tree/main/notebooks) for details.
46
+
47
+ ## Usage with 🤗 Transformers
48
+
49
+
50
+ ### Automatic Mask Generation with Pipeline
51
+
52
+ SAM2 can be used for automatic mask generation to segment all objects in an image using the `mask-generation` pipeline:
53
+
54
+ ```python
55
+ >>> from transformers import pipeline
56
+
57
+ >>> generator = pipeline("mask-generation", model="facebook/sam2.1-hiera-tiny", device=0)
58
+ >>> image_url = "https://huggingface.co/datasets/hf-internal-testing/sam2-fixtures/resolve/main/truck.jpg"
59
+ >>> outputs = generator(image_url, points_per_batch=64)
60
+
61
+ >>> len(outputs["masks"]) # Number of masks generated
62
+ 39
63
+ ```
64
+
65
+ ### Basic Image Segmentation
66
+
67
+ #### Single Point Click
68
+
69
+ You can segment objects by providing a single point click on the object you want to segment:
70
+
71
+ ```python
72
+ >>> from transformers import Sam2Processor, Sam2Model
73
+ >>> import torch
74
+ >>> from PIL import Image
75
+ >>> import requests
76
+
77
+ >>> device = "cuda" if torch.cuda.is_available() else "cpu"
78
+
79
+ >>> model = Sam2Model.from_pretrained("facebook/sam2.1-hiera-tiny").to(device)
80
+ >>> processor = Sam2Processor.from_pretrained("facebook/sam2.1-hiera-tiny")
81
+
82
+ >>> image_url = "https://huggingface.co/datasets/hf-internal-testing/sam2-fixtures/resolve/main/truck.jpg"
83
+ >>> raw_image = Image.open(requests.get(image_url, stream=True).raw).convert("RGB")
84
+
85
+ >>> input_points = [[[[500, 375]]]] # Single point click, 4 dimensions (image_dim, object_dim, point_per_object_dim, coordinates)
86
+ >>> input_labels = [[[1]]] # 1 for positive click, 0 for negative click, 3 dimensions (image_dim, object_dim, point_label)
87
+
88
+ >>> inputs = processor(images=raw_image, input_points=input_points, input_labels=input_labels, return_tensors="pt").to(device)
89
+
90
+ >>> with torch.no_grad():
91
+ ... outputs = model(**inputs)
92
+
93
+ >>> masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])[0]
94
+
95
+ >>> # The model outputs multiple mask predictions ranked by quality score
96
+ >>> print(f"Generated {masks.shape[1]} masks with shape {masks.shape}")
97
+ Generated 3 masks with shape torch.Size(1, 3, 1500, 2250)
98
+ ```
99
+
100
+ #### Multiple Points for Refinement
101
+
102
+ You can provide multiple points to refine the segmentation:
103
+
104
+ ```python
105
+ >>> # Add both positive and negative points to refine the mask
106
+ >>> input_points = [[[[500, 375], [1125, 625]]]] # Multiple points for refinement
107
+ >>> input_labels = [[[1, 1]]] # Both positive clicks
108
+
109
+ >>> inputs = processor(images=raw_image, input_points=input_points, input_labels=input_labels, return_tensors="pt").to(device)
110
+
111
+ >>> with torch.no_grad():
112
+ ... outputs = model(**inputs)
113
+
114
+ >>> masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])[0]
115
+ ```
116
+
117
+ #### Bounding Box Input
118
+
119
+ SAM2 also supports bounding box inputs for segmentation:
120
+
121
+ ```python
122
+ >>> # Define bounding box as [x_min, y_min, x_max, y_max]
123
+ >>> input_boxes = [[[75, 275, 1725, 850]]]
124
+
125
+ >>> inputs = processor(images=raw_image, input_boxes=input_boxes, return_tensors="pt").to(device)
126
+
127
+ >>> with torch.no_grad():
128
+ ... outputs = model(**inputs)
129
+
130
+ >>> masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])[0]
131
+ ```
132
+
133
+ #### Multiple Objects Segmentation
134
+
135
+ You can segment multiple objects simultaneously:
136
+
137
+ ```python
138
+ >>> # Define points for two different objects
139
+ >>> input_points = [[[[500, 375]], [[650, 750]]]] # Points for two objects in same image
140
+ >>> input_labels = [[[1], [1]]] # Positive clicks for both objects
141
+
142
+ >>> inputs = processor(images=raw_image, input_points=input_points, input_labels=input_labels, return_tensors="pt").to(device)
143
+
144
+ >>> with torch.no_grad():
145
+ ... outputs = model(**inputs, multimask_output=False)
146
+
147
+ >>> # Each object gets its own mask
148
+ >>> masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])[0]
149
+ >>> print(f"Generated masks for {masks.shape[0]} objects")
150
+ Generated masks for 2 objects
151
+ ```
152
+
153
+ ### Batch Inference
154
+
155
+ #### Batched Images
156
+
157
+ Process multiple images simultaneously for improved efficiency:
158
+
159
+ ```python
160
+ >>> from transformers import Sam2Processor, Sam2Model
161
+ >>> import torch
162
+ >>> from PIL import Image
163
+ >>> import requests
164
+
165
+ >>> device = "cuda" if torch.cuda.is_available() else "cpu"
166
+
167
+ >>> model = Sam2Model.from_pretrained("facebook/sam2.1-hiera-tiny").to(device)
168
+ >>> processor = Sam2Processor.from_pretrained("facebook/sam2.1-hiera-tiny")
169
+
170
+ >>> # Load multiple images
171
+ >>> image_urls = [
172
+ ... "https://huggingface.co/datasets/hf-internal-testing/sam2-fixtures/resolve/main/truck.jpg",
173
+ ... "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/dog-sam.png"
174
+ ... ]
175
+ >>> raw_images = [Image.open(requests.get(url, stream=True).raw).convert("RGB") for url in image_urls]
176
+
177
+ >>> # Single point per image
178
+ >>> input_points = [[[[500, 375]]], [[[770, 200]]]] # One point for each image
179
+ >>> input_labels = [[[1]], [[1]]] # Positive clicks for both images
180
+
181
+ >>> inputs = processor(images=raw_images, input_points=input_points, input_labels=input_labels, return_tensors="pt").to(device)
182
+
183
+ >>> with torch.no_grad():
184
+ ... outputs = model(**inputs, multimask_output=False)
185
+
186
+ >>> # Post-process masks for each image
187
+ >>> all_masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])
188
+ >>> print(f"Processed {len(all_masks)} images, each with {all_masks[0].shape[0]} objects")
189
+ Processed 2 images, each with 1 objects
190
+ ```
191
+
192
+ #### Batched Objects per Image
193
+
194
+ Segment multiple objects within each image using batch inference:
195
+
196
+ ```python
197
+ >>> # Multiple objects per image - different numbers of objects per image
198
+ >>> input_points = [
199
+ ... [[[500, 375]], [[650, 750]]], # Truck image: 2 objects
200
+ ... [[[770, 200]]] # Dog image: 1 object
201
+ ... ]
202
+ >>> input_labels = [
203
+ ... [[1], [1]], # Truck image: positive clicks for both objects
204
+ ... [[1]] # Dog image: positive click for the object
205
+ ... ]
206
+
207
+ >>> inputs = processor(images=raw_images, input_points=input_points, input_labels=input_labels, return_tensors="pt").to(device)
208
+
209
+ >>> with torch.no_grad():
210
+ ... outputs = model(**inputs, multimask_output=False)
211
+
212
+ >>> all_masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])
213
+ ```
214
+
215
+ #### Batched Images with Batched Objects and Multiple Points
216
+
217
+ Handle complex batch scenarios with multiple points per object:
218
+
219
+ ```python
220
+ >>> # Add groceries image for more complex example
221
+ >>> groceries_url = "https://huggingface.co/datasets/hf-internal-testing/sam2-fixtures/resolve/main/groceries.jpg"
222
+ >>> groceries_image = Image.open(requests.get(groceries_url, stream=True).raw).convert("RGB")
223
+ >>> raw_images = [raw_images[0], groceries_image] # Use truck and groceries images
224
+
225
+ >>> # Complex batching: multiple images, multiple objects, multiple points per object
226
+ >>> input_points = [
227
+ ... [[[500, 375]], [[650, 750]]], # Truck image: 2 objects with 1 point each
228
+ ... [[[400, 300]], [[630, 300], [550, 300]]] # Groceries image: obj1 has 1 point, obj2 has 2 points
229
+ ... ]
230
+ >>> input_labels = [
231
+ ... [[1], [1]], # Truck image: positive clicks
232
+ ... [[1], [1, 1]] # Groceries image: positive clicks for refinement
233
+ ... ]
234
+
235
+ >>> inputs = processor(images=raw_images, input_points=input_points, input_labels=input_labels, return_tensors="pt").to(device)
236
+
237
+ >>> with torch.no_grad():
238
+ ... outputs = model(**inputs, multimask_output=False)
239
+
240
+ >>> all_masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])
241
+ ```
242
+
243
+ #### Batched Bounding Boxes
244
+
245
+ Process multiple images with bounding box inputs:
246
+
247
+ ```python
248
+ >>> # Multiple bounding boxes per image (using truck and groceries images)
249
+ >>> input_boxes = [
250
+ ... [[75, 275, 1725, 850], [425, 600, 700, 875], [1375, 550, 1650, 800], [1240, 675, 1400, 750]], # Truck image: 4 boxes
251
+ ... [[450, 170, 520, 350], [350, 190, 450, 350], [500, 170, 580, 350], [580, 170, 640, 350]] # Groceries image: 4 boxes
252
+ ... ]
253
+
254
+ >>> # Update images for this example
255
+ >>> raw_images = [raw_images[0], groceries_image] # truck and groceries
256
+
257
+ >>> inputs = processor(images=raw_images, input_boxes=input_boxes, return_tensors="pt").to(device)
258
+
259
+ >>> with torch.no_grad():
260
+ ... outputs = model(**inputs, multimask_output=False)
261
+
262
+ >>> all_masks = processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"])
263
+ >>> print(f"Processed {len(input_boxes)} images with {len(input_boxes[0])} and {len(input_boxes[1])} boxes respectively")
264
+ Processed 2 images with 4 and 4 boxes respectively
265
+ ```
266
+
267
+ ### Using Previous Masks as Input
268
+
269
+ SAM2 can use masks from previous predictions as input to refine segmentation:
270
+
271
+ ```python
272
+ >>> # Get initial segmentation
273
+ >>> input_points = [[[[500, 375]]]]
274
+ >>> input_labels = [[[1]]]
275
+ >>> inputs = processor(images=raw_image, input_points=input_points, input_labels=input_labels, return_tensors="pt").to(device)
276
+
277
+ >>> with torch.no_grad():
278
+ ... outputs = model(**inputs)
279
+
280
+ >>> # Use the best mask as input for refinement
281
+ >>> mask_input = outputs.pred_masks[:, :, torch.argmax(outputs.iou_scores.squeeze())]
282
+
283
+ >>> # Add additional points with the mask input
284
+ >>> new_input_points = [[[[500, 375], [450, 300]]]]
285
+ >>> new_input_labels = [[[1, 1]]]
286
+ >>> inputs = processor(
287
+ ... input_points=new_input_points,
288
+ ... input_labels=new_input_labels,
289
+ ... original_sizes=inputs["original_sizes"],
290
+ ... return_tensors="pt",
291
+ ... ).to(device)
292
+
293
+ >>> with torch.no_grad():
294
+ ... refined_outputs = model(
295
+ ... **inputs,
296
+ ... input_masks=mask_input,
297
+ ... image_embeddings=outputs.image_embeddings,
298
+ ... multimask_output=False,
299
+ ... )
300
+ ```
301
+
302
+
303
+ ### Video Segmentation and Tracking
304
+
305
+ SAM2's key strength is its ability to track objects across video frames. Here's how to use it for video segmentation:
306
+
307
+ #### Basic Video Tracking
308
+
309
+ ```python
310
+ >>> from transformers import Sam2VideoModel, Sam2VideoProcessor
311
+ >>> import torch
312
+
313
+ >>> device = "cuda" if torch.cuda.is_available() else "cpu"
314
+ >>> model = Sam2VideoModel.from_pretrained("facebook/sam2.1-hiera-tiny").to(device, dtype=torch.bfloat16)
315
+ >>> processor = Sam2VideoProcessor.from_pretrained("facebook/sam2.1-hiera-tiny")
316
+
317
+ >>> # Load video frames (example assumes you have a list of PIL Images)
318
+ >>> # video_frames = [Image.open(f"frame_{i:05d}.jpg") for i in range(num_frames)]
319
+
320
+ >>> # For this example, we'll use the video loading utility
321
+ >>> from transformers.video_utils import load_video
322
+ >>> video_url = "https://huggingface.co/datasets/hf-internal-testing/sam2-fixtures/resolve/main/bedroom.mp4"
323
+ >>> video_frames, _ = load_video(video_url)
324
+
325
+ >>> # Initialize video inference session
326
+ >>> inference_session = processor.init_video_session(
327
+ ... video=video_frames,
328
+ ... inference_device=device,
329
+ ... torch_dtype=torch.bfloat16,
330
+ ... )
331
+
332
+ >>> # Add click on first frame to select object
333
+ >>> ann_frame_idx = 0
334
+ >>> ann_obj_id = 1
335
+ >>> points = [[[[210, 350]]]]
336
+ >>> labels = [[[1]]]
337
+
338
+ >>> processor.add_inputs_to_inference_session(
339
+ ... inference_session=inference_session,
340
+ ... frame_idx=ann_frame_idx,
341
+ ... obj_ids=ann_obj_id,
342
+ ... input_points=points,
343
+ ... input_labels=labels,
344
+ ... )
345
+
346
+ >>> # Segment the object on the first frame
347
+ >>> outputs = model(
348
+ ... inference_session=inference_session,
349
+ ... frame_idx=ann_frame_idx,
350
+ ... )
351
+ >>> video_res_masks = processor.post_process_masks(
352
+ ... [outputs.pred_masks], original_sizes=[[inference_session.video_height, inference_session.video_width]], binarize=False
353
+ ... )[0]
354
+ >>> print(f"Segmentation shape: {video_res_masks.shape}")
355
+ Segmentation shape: torch.Size([1, 1, 480, 854])
356
+
357
+ >>> # Propagate through the entire video
358
+ >>> video_segments = {}
359
+ >>> for sam2_video_output in model.propagate_in_video_iterator(inference_session):
360
+ ... video_res_masks = processor.post_process_masks(
361
+ ... [sam2_video_output.pred_masks], original_sizes=[[inference_session.video_height, inference_session.video_width]], binarize=False
362
+ ... )[0]
363
+ ... video_segments[sam2_video_output.frame_idx] = video_res_masks
364
+
365
+ >>> print(f"Tracked object through {len(video_segments)} frames")
366
+ Tracked object through 180 frames
367
+ ```
368
+
369
+ #### Multi-Object Video Tracking
370
+
371
+ Track multiple objects simultaneously across video frames:
372
+
373
+ ```python
374
+ >>> # Reset for new tracking session
375
+ >>> inference_session.reset_inference_session()
376
+
377
+ >>> # Add multiple objects on the first frame
378
+ >>> ann_frame_idx = 0
379
+ >>> obj_ids = [2, 3]
380
+ >>> input_points = [[[[200, 300]], [[400, 150]]]] # Points for two objects (batched)
381
+ >>> input_labels = [[[1], [1]]]
382
+
383
+ >>> processor.add_inputs_to_inference_session(
384
+ ... inference_session=inference_session,
385
+ ... frame_idx=ann_frame_idx,
386
+ ... obj_ids=obj_ids,
387
+ ... input_points=input_points,
388
+ ... input_labels=input_labels,
389
+ ... )
390
+
391
+ >>> # Get masks for both objects on first frame
392
+ >>> outputs = model(
393
+ ... inference_session=inference_session,
394
+ ... frame_idx=ann_frame_idx,
395
+ ... )
396
+
397
+ >>> # Propagate both objects through video
398
+ >>> video_segments = {}
399
+ >>> for sam2_video_output in model.propagate_in_video_iterator(inference_session):
400
+ ... video_res_masks = processor.post_process_masks(
401
+ ... [sam2_video_output.pred_masks], original_sizes=[[inference_session.video_height, inference_session.video_width]], binarize=False
402
+ ... )[0]
403
+ ... video_segments[sam2_video_output.frame_idx] = {
404
+ ... obj_id: video_res_masks[i]
405
+ ... for i, obj_id in enumerate(inference_session.obj_ids)
406
+ ... }
407
+
408
+ >>> print(f"Tracked {len(inference_session.obj_ids)} objects through {len(video_segments)} frames")
409
+ Tracked 2 objects through 180 frames
410
+ ```
411
+
412
+ #### Refining Video Segmentation
413
+
414
+ You can add additional clicks on any frame to refine the tracking:
415
+
416
+ ```python
417
+ >>> # Add refinement click on a later frame
418
+ >>> refine_frame_idx = 50
419
+ >>> ann_obj_id = 2 # Refining first object
420
+ >>> points = [[[[220, 280]]]] # Additional point
421
+ >>> labels = [[[1]]] # Positive click
422
+
423
+ >>> processor.add_inputs_to_inference_session(
424
+ ... inference_session=inference_session,
425
+ ... frame_idx=refine_frame_idx,
426
+ ... obj_ids=ann_obj_id,
427
+ ... input_points=points,
428
+ ... input_labels=labels,
429
+ ... )
430
+
431
+ >>> # Re-propagate with the additional information
432
+ >>> video_segments = {}
433
+ >>> for sam2_video_output in model.propagate_in_video_iterator(inference_session):
434
+ ... video_res_masks = processor.post_process_masks(
435
+ ... [sam2_video_output.pred_masks], original_sizes=[[inference_session.video_height, inference_session.video_width]], binarize=False
436
+ ... )[0]
437
+ ... video_segments[sam2_video_output.frame_idx] = video_res_masks
438
+ ```
439
+
440
+ ### Streaming Video Inference
441
+
442
+ For real-time applications, SAM2 supports processing video frames as they arrive:
443
+
444
+ ```python
445
+ >>> # Initialize session for streaming
446
+ >>> inference_session = processor.init_video_session(
447
+ ... inference_device=device,
448
+ ... torch_dtype=torch.bfloat16,
449
+ ... )
450
+
451
+ >>> # Process frames one by one
452
+ >>> for frame_idx, frame in enumerate(video_frames[:10]): # Process first 10 frames
453
+ ... inputs = processor(images=frame, device=device, return_tensors="pt")
454
+ ...
455
+ ... if frame_idx == 0:
456
+ ... # Add point input on first frame
457
+ ... processor.add_inputs_to_inference_session(
458
+ ... inference_session=inference_session,
459
+ ... frame_idx=0,
460
+ ... obj_ids=1,
461
+ ... input_points=[[[[210, 350], [250, 220]]]],
462
+ ... input_labels=[[[1, 1]]],
463
+ ... original_size=inputs.original_sizes[0], # need to be provided when using streaming video inference
464
+ ... )
465
+ ...
466
+ ... # Process current frame
467
+ ... sam2_video_output = model(inference_session=inference_session, frame=inputs.pixel_values[0])
468
+ ...
469
+ ... video_res_masks = processor.post_process_masks(
470
+ ... [sam2_video_output.pred_masks], original_sizes=inputs.original_sizes, binarize=False
471
+ ... )[0]
472
+ ... print(f"Frame {frame_idx}: mask shape {video_res_masks.shape}")
473
+ ```
474
+
475
+ #### Video Batch Processing for Multiple Objects
476
+
477
+ Track multiple objects simultaneously in video by adding them all at once:
478
+
479
+ ```python
480
+ >>> # Initialize video session
481
+ >>> inference_session = processor.init_video_session(
482
+ ... video=video_frames,
483
+ ... inference_device=device,
484
+ ... torch_dtype=torch.bfloat16,
485
+ ... )
486
+
487
+ >>> # Add multiple objects on the first frame using batch processing
488
+ >>> ann_frame_idx = 0
489
+ >>> obj_ids = [2, 3] # Track two different objects
490
+ >>> input_points = [
491
+ ... [[[200, 300], [230, 250], [275, 175]], [[400, 150]]]
492
+ ... ] # Object 2: 3 points (2 positive, 1 negative); Object 3: 1 point
493
+ >>> input_labels = [
494
+ ... [[1, 1, 0], [1]]
495
+ ... ] # Object 2: positive, positive, negative; Object 3: positive
496
+
497
+ >>> processor.add_inputs_to_inference_session(
498
+ ... inference_session=inference_session,
499
+ ... frame_idx=ann_frame_idx,
500
+ ... obj_ids=obj_ids,
501
+ ... input_points=input_points,
502
+ ... input_labels=input_labels,
503
+ ... )
504
+
505
+ >>> # Get masks for all objects on the first frame
506
+ >>> outputs = model(
507
+ ... inference_session=inference_session,
508
+ ... frame_idx=ann_frame_idx,
509
+ ... )
510
+ >>> video_res_masks = processor.post_process_masks(
511
+ ... [outputs.pred_masks], original_sizes=[[inference_session.video_height, inference_session.video_width]], binarize=False
512
+ ... )[0]
513
+ >>> print(f"Generated masks for {video_res_masks.shape[0]} objects")
514
+ Generated masks for 2 objects
515
+
516
+ >>> # Propagate all objects through the video
517
+ >>> video_segments = {}
518
+ >>> for sam2_video_output in model.propagate_in_video_iterator(inference_session):
519
+ ... video_res_masks = processor.post_process_masks(
520
+ ... [sam2_video_output.pred_masks], original_sizes=[[inference_session.video_height, inference_session.video_width]], binarize=False
521
+ ... )[0]
522
+ ... video_segments[sam2_video_output.frame_idx] = {
523
+ ... obj_id: video_res_masks[i]
524
+ ... for i, obj_id in enumerate(inference_session.obj_ids)
525
+ ... }
526
+
527
+ >>> print(f"Tracked {len(inference_session.obj_ids)} objects through {len(video_segments)} frames")
528
+ Tracked 2 objects through 180 frames
529
+ ```
530
+
531
+ ### Citation
532
+
533
+ To cite the paper, model, or software, please use the below:
534
+ ```
535
+ @article{ravi2024sam2,
536
+ title={SAM 2: Segment Anything in Images and Videos},
537
+ author={Ravi, Nikhila and Gabeur, Valentin and Hu, Yuan-Ting and Hu, Ronghang and Ryali, Chaitanya and Ma, Tengyu and Khedr, Haitham and R{\"a}dle, Roman and Rolland, Chloe and Gustafson, Laura and Mintun, Eric and Pan, Junting and Alwala, Kalyan Vasudev and Carion, Nicolas and Wu, Chao-Yuan and Girshick, Ross and Doll{\'a}r, Piotr and Feichtenhofer, Christoph},
538
+ journal={arXiv preprint arXiv:2408.00714},
539
+ url={https://arxiv.org/abs/2408.00714},
540
+ year={2024}
541
+ }
542
+ ```
models/hf/sam2.1-hiera-tiny/config.json ADDED
@@ -0,0 +1,233 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Sam2VideoModel"
4
+ ],
5
+ "enable_occlusion_spatial_embedding": true,
6
+ "enable_temporal_pos_encoding_for_object_pointers": true,
7
+ "image_size": 1024,
8
+ "initializer_range": 0.02,
9
+ "mask_decoder_config": {
10
+ "attention_downsample_rate": 2,
11
+ "dynamic_multimask_stability_delta": 0.05,
12
+ "dynamic_multimask_stability_thresh": 0.98,
13
+ "dynamic_multimask_via_stability": true,
14
+ "hidden_act": "gelu",
15
+ "hidden_size": 256,
16
+ "iou_head_depth": 3,
17
+ "iou_head_hidden_dim": 256,
18
+ "mlp_dim": 2048,
19
+ "model_type": "",
20
+ "num_attention_heads": 8,
21
+ "num_hidden_layers": 2,
22
+ "num_multimask_outputs": 3
23
+ },
24
+ "mask_downsampler_embed_dim": 256,
25
+ "mask_downsampler_hidden_act": "gelu",
26
+ "mask_downsampler_kernel_size": 3,
27
+ "mask_downsampler_padding": 1,
28
+ "mask_downsampler_stride": 2,
29
+ "mask_downsampler_total_stride": 16,
30
+ "max_object_pointers_in_encoder": 16,
31
+ "memory_attention_downsample_rate": 1,
32
+ "memory_attention_dropout": 0.1,
33
+ "memory_attention_feed_forward_hidden_act": "relu",
34
+ "memory_attention_feed_forward_hidden_size": 2048,
35
+ "memory_attention_hidden_size": 256,
36
+ "memory_attention_num_attention_heads": 1,
37
+ "memory_attention_num_layers": 4,
38
+ "memory_attention_rope_dropout": 0.1,
39
+ "memory_attention_rope_feat_sizes": [
40
+ 64,
41
+ 64
42
+ ],
43
+ "memory_attention_rope_theta": 10000,
44
+ "memory_encoder_hidden_size": 256,
45
+ "memory_encoder_output_channels": 64,
46
+ "memory_fuser_embed_dim": 256,
47
+ "memory_fuser_hidden_act": "gelu",
48
+ "memory_fuser_intermediate_dim": 1024,
49
+ "memory_fuser_kernel_size": 7,
50
+ "memory_fuser_layer_scale_init_value": 1e-06,
51
+ "memory_fuser_num_layers": 2,
52
+ "memory_fuser_padding": 3,
53
+ "model_type": "sam2_video",
54
+ "multimask_max_pt_num": 1,
55
+ "multimask_min_pt_num": 0,
56
+ "multimask_output_for_tracking": true,
57
+ "multimask_output_in_sam": true,
58
+ "num_maskmem": 7,
59
+ "prompt_encoder_config": {
60
+ "hidden_act": "gelu",
61
+ "hidden_size": 256,
62
+ "image_size": 1024,
63
+ "layer_norm_eps": 1e-06,
64
+ "mask_input_channels": 16,
65
+ "model_type": "",
66
+ "num_point_embeddings": 4,
67
+ "patch_size": 16,
68
+ "scale": 1
69
+ },
70
+ "sigmoid_bias_for_mem_enc": -10.0,
71
+ "sigmoid_scale_for_mem_enc": 20.0,
72
+ "torch_dtype": "float32",
73
+ "transformers_version": "4.56.0.dev0",
74
+ "vision_config": {
75
+ "backbone_channel_list": [
76
+ 768,
77
+ 384,
78
+ 192,
79
+ 96
80
+ ],
81
+ "backbone_config": {
82
+ "_name_or_path": "",
83
+ "add_cross_attention": false,
84
+ "architectures": null,
85
+ "bad_words_ids": null,
86
+ "begin_suppress_tokens": null,
87
+ "blocks_per_stage": [
88
+ 1,
89
+ 2,
90
+ 7,
91
+ 2
92
+ ],
93
+ "bos_token_id": null,
94
+ "chunk_size_feed_forward": 0,
95
+ "cross_attention_hidden_size": null,
96
+ "decoder_start_token_id": null,
97
+ "diversity_penalty": 0.0,
98
+ "do_sample": false,
99
+ "early_stopping": false,
100
+ "embed_dim_per_stage": [
101
+ 96,
102
+ 192,
103
+ 384,
104
+ 768
105
+ ],
106
+ "encoder_no_repeat_ngram_size": 0,
107
+ "eos_token_id": null,
108
+ "exponential_decay_length_penalty": null,
109
+ "finetuning_task": null,
110
+ "forced_bos_token_id": null,
111
+ "forced_eos_token_id": null,
112
+ "global_attention_blocks": [
113
+ 5,
114
+ 7,
115
+ 9
116
+ ],
117
+ "hidden_act": "gelu",
118
+ "hidden_size": 96,
119
+ "id2label": {
120
+ "0": "LABEL_0",
121
+ "1": "LABEL_1"
122
+ },
123
+ "image_size": [
124
+ 1024,
125
+ 1024
126
+ ],
127
+ "initializer_range": 0.02,
128
+ "is_decoder": false,
129
+ "is_encoder_decoder": false,
130
+ "label2id": {
131
+ "LABEL_0": 0,
132
+ "LABEL_1": 1
133
+ },
134
+ "layer_norm_eps": 1e-06,
135
+ "length_penalty": 1.0,
136
+ "max_length": 20,
137
+ "min_length": 0,
138
+ "mlp_ratio": 4.0,
139
+ "model_type": "sam2_hiera_det_model",
140
+ "no_repeat_ngram_size": 0,
141
+ "num_attention_heads": 1,
142
+ "num_attention_heads_per_stage": [
143
+ 1,
144
+ 2,
145
+ 4,
146
+ 8
147
+ ],
148
+ "num_beam_groups": 1,
149
+ "num_beams": 1,
150
+ "num_channels": 3,
151
+ "num_query_pool_stages": 3,
152
+ "num_return_sequences": 1,
153
+ "output_attentions": false,
154
+ "output_hidden_states": false,
155
+ "output_scores": false,
156
+ "pad_token_id": null,
157
+ "patch_kernel_size": [
158
+ 7,
159
+ 7
160
+ ],
161
+ "patch_padding": [
162
+ 3,
163
+ 3
164
+ ],
165
+ "patch_stride": [
166
+ 4,
167
+ 4
168
+ ],
169
+ "prefix": null,
170
+ "problem_type": null,
171
+ "pruned_heads": {},
172
+ "query_stride": [
173
+ 2,
174
+ 2
175
+ ],
176
+ "remove_invalid_values": false,
177
+ "repetition_penalty": 1.0,
178
+ "return_dict": true,
179
+ "return_dict_in_generate": false,
180
+ "sep_token_id": null,
181
+ "suppress_tokens": null,
182
+ "task_specific_params": null,
183
+ "temperature": 1.0,
184
+ "tf_legacy_loss": false,
185
+ "tie_encoder_decoder": false,
186
+ "tie_word_embeddings": true,
187
+ "tokenizer_class": null,
188
+ "top_k": 50,
189
+ "top_p": 1.0,
190
+ "torch_dtype": null,
191
+ "torchscript": false,
192
+ "typical_p": 1.0,
193
+ "use_bfloat16": false,
194
+ "window_positional_embedding_background_size": [
195
+ 7,
196
+ 7
197
+ ],
198
+ "window_size_per_stage": [
199
+ 8,
200
+ 4,
201
+ 14,
202
+ 7
203
+ ]
204
+ },
205
+ "backbone_feature_sizes": [
206
+ [
207
+ 256,
208
+ 256
209
+ ],
210
+ [
211
+ 128,
212
+ 128
213
+ ],
214
+ [
215
+ 64,
216
+ 64
217
+ ]
218
+ ],
219
+ "fpn_hidden_size": 256,
220
+ "fpn_kernel_size": 1,
221
+ "fpn_padding": 0,
222
+ "fpn_stride": 1,
223
+ "fpn_top_down_levels": [
224
+ 2,
225
+ 3
226
+ ],
227
+ "hidden_act": "gelu",
228
+ "initializer_range": 0.02,
229
+ "layer_norm_eps": 1e-06,
230
+ "model_type": "sam2_vision_model",
231
+ "num_feature_levels": 3
232
+ }
233
+ }
models/hf/sam2.1-hiera-tiny/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48c14467e5cf9e51870511feb72c89688e82dd74523142c0538b663e193ac2a7
3
+ size 155908064
models/hf/sam2.1-hiera-tiny/preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "device": null,
6
+ "disable_grouping": null,
7
+ "do_center_crop": null,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_rescale": true,
11
+ "do_resize": true,
12
+ "image_mean": [
13
+ 0.485,
14
+ 0.456,
15
+ 0.406
16
+ ],
17
+ "image_processor_type": "Sam2ImageProcessorFast",
18
+ "image_std": [
19
+ 0.229,
20
+ 0.224,
21
+ 0.225
22
+ ],
23
+ "input_data_format": null,
24
+ "mask_size": {
25
+ "height": 256,
26
+ "width": 256
27
+ },
28
+ "processor_class": "Sam2VideoProcessor",
29
+ "resample": 2,
30
+ "rescale_factor": 0.00392156862745098,
31
+ "return_tensors": null,
32
+ "size": {
33
+ "height": 1024,
34
+ "width": 1024
35
+ }
36
+ }
models/hf/sam2.1-hiera-tiny/processor_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "point_pad_value": -10,
3
+ "processor_class": "Sam2VideoProcessor",
4
+ "target_size": 1024
5
+ }
models/ort/unet_ft_ffhq/meta.json ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "unet_step_ft_ffhq_fp16_conv3d_nearest_conv_pack",
3
+ "kind": "step_pack",
4
+ "from": [
5
+ "unet_step_ft_ffhq_fp16_conv3d_nearest_conv_b2/model.onnx",
6
+ "unet_step_ft_ffhq_fp16_conv3d_nearest_conv_b1/model.onnx"
7
+ ],
8
+ "matched_initializers": 689,
9
+ "b1_initializers": 689,
10
+ "shared_bytes": 442821360,
11
+ "files": {
12
+ "model_b2.onnx": 456896,
13
+ "model_b1.onnx": 456438,
14
+ "weights.bin": 442821360
15
+ },
16
+ "bytes": 443734694,
17
+ "unpacked_bytes": 886490708,
18
+ "source_meta": {
19
+ "name": "unet_step_ft_ffhq_fp16_conv3d_nearest_conv_b2",
20
+ "kind": "unet_step",
21
+ "ckpt": "ft_ffhq",
22
+ "precision": "fp16",
23
+ "options": {
24
+ "posconv": "conv3d",
25
+ "upsample": "nearest_conv",
26
+ "latent_hw": [
27
+ 64,
28
+ 64
29
+ ],
30
+ "norm_fp32": false
31
+ },
32
+ "opset": 18,
33
+ "params": 221447814,
34
+ "source_sha256": "ddd5b81b3034dea2bb380c574517ebbf24957903d99319fa8bbb8e69ca9d5606",
35
+ "exporter": "torchscript",
36
+ "torch": "2.13.0+cu130",
37
+ "export_seconds": 10.1,
38
+ "nodes": 2155,
39
+ "op_histogram": {
40
+ "Constant": 521,
41
+ "Add": 294,
42
+ "Reshape": 289,
43
+ "MatMul": 195,
44
+ "Mul": 164,
45
+ "Conv": 109,
46
+ "Transpose": 105,
47
+ "Sigmoid": 63,
48
+ "Shape": 61,
49
+ "Unsqueeze": 60,
50
+ "Gather": 53,
51
+ "InstanceNormalization": 46,
52
+ "LayerNormalization": 45,
53
+ "Slice": 34,
54
+ "Relu": 32,
55
+ "Gemm": 17,
56
+ "Div": 16,
57
+ "Softmax": 15,
58
+ "Concat": 12,
59
+ "Cast": 6,
60
+ "ConstantOfShape": 3,
61
+ "Equal": 3,
62
+ "Where": 3,
63
+ "Expand": 3,
64
+ "Resize": 2,
65
+ "Sub": 2,
66
+ "Sin": 1,
67
+ "Cos": 1
68
+ },
69
+ "inputs": [
70
+ [
71
+ "x_t",
72
+ [
73
+ 1,
74
+ 4,
75
+ 64,
76
+ 64
77
+ ],
78
+ 1
79
+ ],
80
+ [
81
+ "mask_lat",
82
+ [
83
+ 1,
84
+ 1,
85
+ 64,
86
+ 64
87
+ ],
88
+ 1
89
+ ],
90
+ [
91
+ "masked_lat",
92
+ [
93
+ 1,
94
+ 4,
95
+ 64,
96
+ 64
97
+ ],
98
+ 1
99
+ ],
100
+ [
101
+ "branch",
102
+ [
103
+ 2
104
+ ],
105
+ 7
106
+ ],
107
+ [
108
+ "coef",
109
+ [
110
+ 8
111
+ ],
112
+ 1
113
+ ],
114
+ [
115
+ "x0_prev",
116
+ [
117
+ 1,
118
+ 4,
119
+ 64,
120
+ 64
121
+ ],
122
+ 1
123
+ ]
124
+ ],
125
+ "outputs": [
126
+ [
127
+ "x_next",
128
+ [
129
+ 1,
130
+ 4,
131
+ 64,
132
+ 64
133
+ ],
134
+ 1
135
+ ],
136
+ [
137
+ "x0",
138
+ [
139
+ 1,
140
+ 4,
141
+ 64,
142
+ 64
143
+ ],
144
+ 1
145
+ ]
146
+ ],
147
+ "bytes": 443245583
148
+ },
149
+ "options": {
150
+ "posconv": "conv3d",
151
+ "upsample": "nearest_conv",
152
+ "latent_hw": [
153
+ 64,
154
+ 64
155
+ ],
156
+ "norm_fp32": false
157
+ }
158
+ }
models/ort/unet_ft_ffhq/model_b1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:975a68e46aeaf33c36b4f013d1b90f06eb1df71b8be69fe9deb4c646c700795d
3
+ size 456438
models/ort/unet_ft_ffhq/model_b2.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aec8649c624e3bccec51df4b6f87e481c7e2ebbf753b9f00f71a830f8e08edca
3
+ size 456896
models/ort/unet_ft_ffhq/weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ce9063ffc0341d8051dc227e5cd2063330bcba4723a374aa676485509d43845
3
+ size 442821360
models/ort/unet_ft_places2/meta.json ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "unet_step_ft_places2_fp16_conv3d_nearest_conv_pack",
3
+ "kind": "step_pack",
4
+ "from": [
5
+ "unet_step_ft_places2_fp16_conv3d_nearest_conv_b2/model.onnx",
6
+ "unet_step_ft_places2_fp16_conv3d_nearest_conv_b1/model.onnx"
7
+ ],
8
+ "matched_initializers": 689,
9
+ "b1_initializers": 689,
10
+ "shared_bytes": 442821360,
11
+ "files": {
12
+ "model_b2.onnx": 456896,
13
+ "model_b1.onnx": 456438,
14
+ "weights.bin": 442821360
15
+ },
16
+ "bytes": 443734694,
17
+ "unpacked_bytes": 886490708,
18
+ "source_meta": {
19
+ "name": "unet_step_ft_places2_fp16_conv3d_nearest_conv_b2",
20
+ "kind": "unet_step",
21
+ "ckpt": "ft_places2",
22
+ "precision": "fp16",
23
+ "options": {
24
+ "posconv": "conv3d",
25
+ "upsample": "nearest_conv",
26
+ "latent_hw": [
27
+ 64,
28
+ 64
29
+ ],
30
+ "norm_fp32": false
31
+ },
32
+ "opset": 18,
33
+ "params": 221447814,
34
+ "source_sha256": "6525afb888e55f9b5c74fa0a5d19ca0762d720d6c716fb0f8422fbeb6868a09a",
35
+ "exporter": "torchscript",
36
+ "torch": "2.13.0+cu130",
37
+ "export_seconds": 9.0,
38
+ "nodes": 2155,
39
+ "op_histogram": {
40
+ "Constant": 521,
41
+ "Add": 294,
42
+ "Reshape": 289,
43
+ "MatMul": 195,
44
+ "Mul": 164,
45
+ "Conv": 109,
46
+ "Transpose": 105,
47
+ "Sigmoid": 63,
48
+ "Shape": 61,
49
+ "Unsqueeze": 60,
50
+ "Gather": 53,
51
+ "InstanceNormalization": 46,
52
+ "LayerNormalization": 45,
53
+ "Slice": 34,
54
+ "Relu": 32,
55
+ "Gemm": 17,
56
+ "Div": 16,
57
+ "Softmax": 15,
58
+ "Concat": 12,
59
+ "Cast": 6,
60
+ "ConstantOfShape": 3,
61
+ "Equal": 3,
62
+ "Where": 3,
63
+ "Expand": 3,
64
+ "Resize": 2,
65
+ "Sub": 2,
66
+ "Sin": 1,
67
+ "Cos": 1
68
+ },
69
+ "inputs": [
70
+ [
71
+ "x_t",
72
+ [
73
+ 1,
74
+ 4,
75
+ 64,
76
+ 64
77
+ ],
78
+ 1
79
+ ],
80
+ [
81
+ "mask_lat",
82
+ [
83
+ 1,
84
+ 1,
85
+ 64,
86
+ 64
87
+ ],
88
+ 1
89
+ ],
90
+ [
91
+ "masked_lat",
92
+ [
93
+ 1,
94
+ 4,
95
+ 64,
96
+ 64
97
+ ],
98
+ 1
99
+ ],
100
+ [
101
+ "branch",
102
+ [
103
+ 2
104
+ ],
105
+ 7
106
+ ],
107
+ [
108
+ "coef",
109
+ [
110
+ 8
111
+ ],
112
+ 1
113
+ ],
114
+ [
115
+ "x0_prev",
116
+ [
117
+ 1,
118
+ 4,
119
+ 64,
120
+ 64
121
+ ],
122
+ 1
123
+ ]
124
+ ],
125
+ "outputs": [
126
+ [
127
+ "x_next",
128
+ [
129
+ 1,
130
+ 4,
131
+ 64,
132
+ 64
133
+ ],
134
+ 1
135
+ ],
136
+ [
137
+ "x0",
138
+ [
139
+ 1,
140
+ 4,
141
+ 64,
142
+ 64
143
+ ],
144
+ 1
145
+ ]
146
+ ],
147
+ "bytes": 443245583
148
+ },
149
+ "options": {
150
+ "posconv": "conv3d",
151
+ "upsample": "nearest_conv",
152
+ "latent_hw": [
153
+ 64,
154
+ 64
155
+ ],
156
+ "norm_fp32": false
157
+ }
158
+ }
models/ort/unet_ft_places2/model_b1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b1782ea484df7b7d59fde0beba023e7876760b826ede9199dbffd1bdf032396
3
+ size 456438
models/ort/unet_ft_places2/model_b2.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5734f1e8c4dd81790825e3c198c6f7e37013722200b21e80bc258bec88b253f6
3
+ size 456896
models/ort/unet_ft_places2/weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1c33d534573638fe613a0170e20931a97973c03643f69cabae99750a1e681d5
3
+ size 442821360
models/ort/unet_pretrained/meta.json ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "unet_step_pretrained_fp16_conv3d_nearest_conv_pack",
3
+ "kind": "step_pack",
4
+ "from": [
5
+ "build\\unet_step_pretrained_fp16_conv3d_nearest_conv_b2\\model.onnx",
6
+ "build\\unet_step_pretrained_fp16_conv3d_nearest_conv_b1\\model.onnx"
7
+ ],
8
+ "matched_initializers": 689,
9
+ "b1_initializers": 689,
10
+ "shared_bytes": 442821360,
11
+ "files": {
12
+ "model_b2.onnx": 456896,
13
+ "model_b1.onnx": 456438,
14
+ "weights.bin": 442821360
15
+ },
16
+ "bytes": 443734694,
17
+ "unpacked_bytes": 886490708,
18
+ "source_meta": {
19
+ "name": "unet_step_pretrained_fp16_conv3d_nearest_conv_b2",
20
+ "kind": "unet_step",
21
+ "ckpt": "pretrained",
22
+ "precision": "fp16",
23
+ "options": {
24
+ "posconv": "conv3d",
25
+ "upsample": "nearest_conv",
26
+ "latent_hw": [
27
+ 64,
28
+ 64
29
+ ],
30
+ "norm_fp32": false
31
+ },
32
+ "opset": 18,
33
+ "params": 221447814,
34
+ "source_sha256": "6c9ee08ce467af48767b74416646d82f8a0c1dcfb558c478e635cef0ca8b2ad2",
35
+ "exporter": "torchscript",
36
+ "torch": "2.13.0+cu130",
37
+ "export_seconds": 11.7,
38
+ "nodes": 2155,
39
+ "op_histogram": {
40
+ "Constant": 521,
41
+ "Add": 294,
42
+ "Reshape": 289,
43
+ "MatMul": 195,
44
+ "Mul": 164,
45
+ "Conv": 109,
46
+ "Transpose": 105,
47
+ "Sigmoid": 63,
48
+ "Shape": 61,
49
+ "Unsqueeze": 60,
50
+ "Gather": 53,
51
+ "InstanceNormalization": 46,
52
+ "LayerNormalization": 45,
53
+ "Slice": 34,
54
+ "Relu": 32,
55
+ "Gemm": 17,
56
+ "Div": 16,
57
+ "Softmax": 15,
58
+ "Concat": 12,
59
+ "Cast": 6,
60
+ "ConstantOfShape": 3,
61
+ "Equal": 3,
62
+ "Where": 3,
63
+ "Expand": 3,
64
+ "Resize": 2,
65
+ "Sub": 2,
66
+ "Sin": 1,
67
+ "Cos": 1
68
+ },
69
+ "inputs": [
70
+ [
71
+ "x_t",
72
+ [
73
+ 1,
74
+ 4,
75
+ 64,
76
+ 64
77
+ ],
78
+ 1
79
+ ],
80
+ [
81
+ "mask_lat",
82
+ [
83
+ 1,
84
+ 1,
85
+ 64,
86
+ 64
87
+ ],
88
+ 1
89
+ ],
90
+ [
91
+ "masked_lat",
92
+ [
93
+ 1,
94
+ 4,
95
+ 64,
96
+ 64
97
+ ],
98
+ 1
99
+ ],
100
+ [
101
+ "branch",
102
+ [
103
+ 2
104
+ ],
105
+ 7
106
+ ],
107
+ [
108
+ "coef",
109
+ [
110
+ 8
111
+ ],
112
+ 1
113
+ ],
114
+ [
115
+ "x0_prev",
116
+ [
117
+ 1,
118
+ 4,
119
+ 64,
120
+ 64
121
+ ],
122
+ 1
123
+ ]
124
+ ],
125
+ "outputs": [
126
+ [
127
+ "x_next",
128
+ [
129
+ 1,
130
+ 4,
131
+ 64,
132
+ 64
133
+ ],
134
+ 1
135
+ ],
136
+ [
137
+ "x0",
138
+ [
139
+ 1,
140
+ 4,
141
+ 64,
142
+ 64
143
+ ],
144
+ 1
145
+ ]
146
+ ],
147
+ "bytes": 443245583
148
+ },
149
+ "options": {
150
+ "posconv": "conv3d",
151
+ "upsample": "nearest_conv",
152
+ "latent_hw": [
153
+ 64,
154
+ 64
155
+ ],
156
+ "norm_fp32": false
157
+ }
158
+ }
models/ort/unet_pretrained/model_b1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:560932a557f50e095b928b38f57ddea8db77fb186d2e93542b95f63e0358b112
3
+ size 456438
models/ort/unet_pretrained/model_b2.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:962e6283c2f578fcfa32e5f0a4df3f7bf160cd95cd8eac4e1a12ebd4da172ad2
3
+ size 456896
models/ort/unet_pretrained/weights.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5b2d4cd71f4080d90c8ab123d63cee41d38b69140ebc69d7371d4a45c53aa1c
3
+ size 442821360
models/ort/vae_fp16/decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44b8c0fb44db2412048f4c6cac51c2f7ab7e7df47ba56e33512bd975c262797e
3
+ size 99098258
models/ort/vae_fp16/encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d00aff246d1e6e97d950ce3c97ebf7f1e800341d88880dbee135db1d1737b9b5
3
+ size 68431349
models/ort/vae_fp16/meta.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "vae_fp16",
3
+ "kind": "vae",
4
+ "precision": "fp16",
5
+ "opset": 18,
6
+ "scaling_factor": 0.13025,
7
+ "encoder": {
8
+ "export_seconds": 2.1,
9
+ "nodes": 480,
10
+ "op_histogram": {
11
+ "Constant": 145,
12
+ "Reshape": 56,
13
+ "Mul": 49,
14
+ "Add": 38,
15
+ "Shape": 30,
16
+ "Conv": 28,
17
+ "InstanceNormalization": 22,
18
+ "Sigmoid": 21,
19
+ "Unsqueeze": 15,
20
+ "Div": 14,
21
+ "Cast": 12,
22
+ "Transpose": 10,
23
+ "Concat": 9,
24
+ "Gather": 7,
25
+ "Slice": 6,
26
+ "MatMul": 6,
27
+ "ConstantOfShape": 3,
28
+ "Pad": 3,
29
+ "Sqrt": 3,
30
+ "Softmax": 1,
31
+ "Clip": 1,
32
+ "Exp": 1
33
+ },
34
+ "inputs": [
35
+ [
36
+ "image",
37
+ [
38
+ "B",
39
+ 3,
40
+ "H",
41
+ "W"
42
+ ],
43
+ 1
44
+ ]
45
+ ],
46
+ "outputs": [
47
+ [
48
+ "mean",
49
+ [
50
+ "B",
51
+ "Castmean_dim_1",
52
+ "h",
53
+ "w"
54
+ ],
55
+ 1
56
+ ],
57
+ [
58
+ "std",
59
+ [
60
+ "B",
61
+ "Caststd_dim_1",
62
+ "h",
63
+ "w"
64
+ ],
65
+ 1
66
+ ]
67
+ ],
68
+ "bytes": 68431349
69
+ },
70
+ "decoder": {
71
+ "export_seconds": 1.8,
72
+ "nodes": 533,
73
+ "op_histogram": {
74
+ "Constant": 146,
75
+ "Reshape": 66,
76
+ "Mul": 64,
77
+ "Add": 50,
78
+ "Shape": 37,
79
+ "Conv": 36,
80
+ "InstanceNormalization": 30,
81
+ "Sigmoid": 29,
82
+ "Div": 18,
83
+ "Unsqueeze": 15,
84
+ "Cast": 8,
85
+ "Transpose": 7,
86
+ "Gather": 6,
87
+ "Concat": 6,
88
+ "MatMul": 6,
89
+ "Sqrt": 3,
90
+ "Resize": 3,
91
+ "Slice": 1,
92
+ "Softmax": 1,
93
+ "Clip": 1
94
+ },
95
+ "inputs": [
96
+ [
97
+ "latent",
98
+ [
99
+ "B",
100
+ 4,
101
+ "h",
102
+ "w"
103
+ ],
104
+ 1
105
+ ]
106
+ ],
107
+ "outputs": [
108
+ [
109
+ "image",
110
+ [
111
+ "B",
112
+ 3,
113
+ "H",
114
+ "W"
115
+ ],
116
+ 1
117
+ ]
118
+ ],
119
+ "bytes": 99098258
120
+ },
121
+ "nodes": 1013,
122
+ "bytes": 167529607,
123
+ "export_seconds": 3.9000000000000004,
124
+ "source": "hustvl/PixelHacker vae (== madebyollin/sdxl-vae-fp16-fix)"
125
+ }
models/torch/maskrcnn_resnet50_fpn_v2_coco.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de8ca4510a47ed7f4506d425f8d39a4c53b3d2dbbd91a7f365cf15afe49447f7
3
+ size 185728340
packs/moebius-ffhq/manifest.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "moebius-ffhq",
3
+ "model": "Moebius 0.22B inpainting (hustvl, ECCV'26)",
4
+ "variant": "ft_ffhq",
5
+ "label": "Faces (FFHQ fine-tune)",
6
+ "dtype": "float16",
7
+ "quant": "none",
8
+ "group_size": 64,
9
+ "quantized": [],
10
+ "resolution": 512,
11
+ "files": {
12
+ "unet.safetensors": {
13
+ "size": 476805987,
14
+ "sha256": "447f9e33dc2795df96fa94d478a19a0cd42afe62da685c3a45c0ef63baf309f1"
15
+ },
16
+ "temb.npz": {
17
+ "size": 5120262,
18
+ "sha256": "db4e76209b1149e80edc6f28fb71b38aeb6d1d17a5a40a11cac6bf71abb14fa6"
19
+ }
20
+ },
21
+ "sources": {
22
+ "hustvl/PixelHacker/vae/config.json": null,
23
+ "hustvl/PixelHacker/vae/diffusion_pytorch_model.bin": "a59d7ea697f2942d22002dc3469e8c53db807a6b78f7f5ec03bd4c1f70f98efe",
24
+ "hustvl/Moebius/ft_ffhq/diffusion_pytorch_model.bin": "ddd5b81b3034dea2bb380c574517ebbf24957903d99319fa8bbb8e69ca9d5606"
25
+ },
26
+ "license": "Moebius code: Apache-2.0 (GitHub); weights card: MIT (Hugging Face). VAE: hustvl/PixelHacker.",
27
+ "built": "2026-09-26 11:15:13",
28
+ "vae_from": "moebius-general"
29
+ }
packs/moebius-ffhq/temb.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db4e76209b1149e80edc6f28fb71b38aeb6d1d17a5a40a11cac6bf71abb14fa6
3
+ size 5120262
packs/moebius-ffhq/unet.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:447f9e33dc2795df96fa94d478a19a0cd42afe62da685c3a45c0ef63baf309f1
3
+ size 476805987
packs/moebius-general/coreml/vae_dec_vae.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6663f0fb9e382b63c15a1115abcbe33cc8619449051ea529ec3fcdc178b7732
3
+ size 243
packs/moebius-general/coreml/vae_dec_vae.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d68c4f729a505b616f7659890748c8b1af8b42c0d0f5012d1abf7663d85f675f
3
+ size 375
packs/moebius-general/coreml/vae_dec_vae.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
packs/moebius-general/coreml/vae_dec_vae.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a08df0be795fc242c02d8af66b1f4e0daf8a0b7951a41d55bf88707125763650
3
+ size 98993280
packs/moebius-general/coreml/vae_dec_vae.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:665838da9f7936e23a59f6ccd026f1d2b042652c539d61d07507226e6db3bd83
3
+ size 167507
packs/moebius-general/coreml/vae_dec_vae.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a08df0be795fc242c02d8af66b1f4e0daf8a0b7951a41d55bf88707125763650
3
+ size 98993280
packs/moebius-general/coreml/vae_dec_vae.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "136A6A57-FC0F-4F43-B4C8-23E6337FD9BC": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "AD690466-9DF3-484F-A828-94C5538A2A3F": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "AD690466-9DF3-484F-A828-94C5538A2A3F"
18
+ }
packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:432521d2d1ec401c7ba3fd17691560d9e14f3b4db7fedd8a739c229d289b4491
3
+ size 243
packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18bf1300791da39cf6d095e306c12d46b85a7dbef9576e482d51f810b2181e5c
3
+ size 375
packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
packs/moebius-general/coreml/vae_enc_b1_vae.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab2c204f5b39ec9ad32226638e53be2ad169f1f6b6b438547350128a5125ca5
3
+ size 68338112
packs/moebius-general/coreml/vae_enc_b1_vae.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c59a22a04dee07474abb3e7992c6a8926f9f45cdebd154f704252db71eb1e953
3
+ size 128328
packs/moebius-general/coreml/vae_enc_b1_vae.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab2c204f5b39ec9ad32226638e53be2ad169f1f6b6b438547350128a5125ca5
3
+ size 68338112
packs/moebius-general/coreml/vae_enc_b1_vae.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "71B7B3CB-CD4D-490F-AA73-77595EAD7CA8": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "760B7E27-B120-430A-83AD-2FE4682930BF": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "760B7E27-B120-430A-83AD-2FE4682930BF"
18
+ }
packs/moebius-general/manifest.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "moebius-general",
3
+ "model": "Moebius 0.22B inpainting (hustvl, ECCV'26)",
4
+ "variant": "pretrained",
5
+ "label": "General (pretrained)",
6
+ "dtype": "float16",
7
+ "quant": "none",
8
+ "group_size": 64,
9
+ "quantized": [],
10
+ "resolution": 512,
11
+ "files": {
12
+ "vae.safetensors": {
13
+ "size": 167335393,
14
+ "sha256": "f243df8e8e33a46b9eea0d668ea942cc456383fc17a3cd048b7fe1bcec902d48"
15
+ },
16
+ "unet.safetensors": {
17
+ "size": 476805987,
18
+ "sha256": "8c9a07eb3637bcdb5a5d0ac07031294f756936153704e1d42583b58f4ca67b07"
19
+ },
20
+ "temb.npz": {
21
+ "size": 5120262,
22
+ "sha256": "b5b4a28cb0ba6a4cd035de76a9d1db562761497f561a59ac8bf06ad12f2069c7"
23
+ },
24
+ "coreml/vae_dec_vae.mlmodelc/model.mil": {
25
+ "size": 172959,
26
+ "sha256": "d628b589c2b4ad70a3bb3d680a12827fc1117be4676c51e1ad1aceff83e00f5a"
27
+ },
28
+ "coreml/vae_dec_vae.mlmodelc/coremldata.bin": {
29
+ "size": 375,
30
+ "sha256": "d68c4f729a505b616f7659890748c8b1af8b42c0d0f5012d1abf7663d85f675f"
31
+ },
32
+ "coreml/vae_dec_vae.mlmodelc/weights/weight.bin": {
33
+ "size": 98993280,
34
+ "sha256": "a08df0be795fc242c02d8af66b1f4e0daf8a0b7951a41d55bf88707125763650"
35
+ },
36
+ "coreml/vae_dec_vae.mlmodelc/analytics/coremldata.bin": {
37
+ "size": 243,
38
+ "sha256": "a6663f0fb9e382b63c15a1115abcbe33cc8619449051ea529ec3fcdc178b7732"
39
+ },
40
+ "coreml/vae_enc_b1_vae.mlpackage/Manifest.json": {
41
+ "size": 617,
42
+ "sha256": "9c53afab3e7f93f0f9d78205900fe812b8ac7ee01ac9f2836472c5f2cc5d3019"
43
+ },
44
+ "coreml/vae_enc_b1_vae.mlpackage/Data/com.apple.CoreML/model.mlmodel": {
45
+ "size": 128328,
46
+ "sha256": "c59a22a04dee07474abb3e7992c6a8926f9f45cdebd154f704252db71eb1e953"
47
+ },
48
+ "coreml/vae_enc_b1_vae.mlpackage/Data/com.apple.CoreML/weights/weight.bin": {
49
+ "size": 68338112,
50
+ "sha256": "1ab2c204f5b39ec9ad32226638e53be2ad169f1f6b6b438547350128a5125ca5"
51
+ },
52
+ "coreml/vae_dec_vae.mlpackage/Manifest.json": {
53
+ "size": 617,
54
+ "sha256": "d64992cb0d403e5992fde4c12bddc998fb2dbe669b8a3f3591bc4eab4f84ab94"
55
+ },
56
+ "coreml/vae_dec_vae.mlpackage/Data/com.apple.CoreML/model.mlmodel": {
57
+ "size": 167507,
58
+ "sha256": "665838da9f7936e23a59f6ccd026f1d2b042652c539d61d07507226e6db3bd83"
59
+ },
60
+ "coreml/vae_dec_vae.mlpackage/Data/com.apple.CoreML/weights/weight.bin": {
61
+ "size": 98993280,
62
+ "sha256": "a08df0be795fc242c02d8af66b1f4e0daf8a0b7951a41d55bf88707125763650"
63
+ },
64
+ "coreml/vae_enc_b1_vae.mlmodelc/model.mil": {
65
+ "size": 132789,
66
+ "sha256": "1fcd6981063c2175022074aa5f0bc7730bf8ce3aff15314e2b3220917c22c7a7"
67
+ },
68
+ "coreml/vae_enc_b1_vae.mlmodelc/coremldata.bin": {
69
+ "size": 375,
70
+ "sha256": "18bf1300791da39cf6d095e306c12d46b85a7dbef9576e482d51f810b2181e5c"
71
+ },
72
+ "coreml/vae_enc_b1_vae.mlmodelc/weights/weight.bin": {
73
+ "size": 68338112,
74
+ "sha256": "1ab2c204f5b39ec9ad32226638e53be2ad169f1f6b6b438547350128a5125ca5"
75
+ },
76
+ "coreml/vae_enc_b1_vae.mlmodelc/analytics/coremldata.bin": {
77
+ "size": 243,
78
+ "sha256": "432521d2d1ec401c7ba3fd17691560d9e14f3b4db7fedd8a739c229d289b4491"
79
+ }
80
+ },
81
+ "sources": {
82
+ "hustvl/Moebius/pretrained/diffusion_pytorch_model.bin": "6c9ee08ce467af48767b74416646d82f8a0c1dcfb558c478e635cef0ca8b2ad2",
83
+ "hustvl/PixelHacker/vae/config.json": null,
84
+ "hustvl/PixelHacker/vae/diffusion_pytorch_model.bin": "a59d7ea697f2942d22002dc3469e8c53db807a6b78f7f5ec03bd4c1f70f98efe"
85
+ },
86
+ "license": "Moebius code: Apache-2.0 (GitHub); weights card: MIT (Hugging Face). VAE: hustvl/PixelHacker.",
87
+ "built": "2026-09-26 09:29:25"
88
+ }
packs/moebius-general/temb.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5b4a28cb0ba6a4cd035de76a9d1db562761497f561a59ac8bf06ad12f2069c7
3
+ size 5120262
packs/moebius-general/unet.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c9a07eb3637bcdb5a5d0ac07031294f756936153704e1d42583b58f4ca67b07
3
+ size 476805987
packs/moebius-general/vae.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f243df8e8e33a46b9eea0d668ea942cc456383fc17a3cd048b7fe1bcec902d48
3
+ size 167335393
packs/moebius-places2/manifest.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "moebius-places2",
3
+ "model": "Moebius 0.22B inpainting (hustvl, ECCV'26)",
4
+ "variant": "ft_places2",
5
+ "label": "Scenes (Places2 fine-tune)",
6
+ "dtype": "float16",
7
+ "quant": "none",
8
+ "group_size": 64,
9
+ "quantized": [],
10
+ "resolution": 512,
11
+ "files": {
12
+ "unet.safetensors": {
13
+ "size": 476805987,
14
+ "sha256": "d5cc6e1e8273ec65112131deeb0d129b9e9deac29379e9e112ed7849500ddafe"
15
+ },
16
+ "temb.npz": {
17
+ "size": 5120262,
18
+ "sha256": "a1ba3d1fc9081ca7ac324f8c79c537a7c85c57c5d3e9d0cb0446b5177c082077"
19
+ }
20
+ },
21
+ "sources": {
22
+ "hustvl/PixelHacker/vae/config.json": null,
23
+ "hustvl/PixelHacker/vae/diffusion_pytorch_model.bin": "a59d7ea697f2942d22002dc3469e8c53db807a6b78f7f5ec03bd4c1f70f98efe",
24
+ "hustvl/Moebius/ft_places2/diffusion_pytorch_model.bin": "6525afb888e55f9b5c74fa0a5d19ca0762d720d6c716fb0f8422fbeb6868a09a"
25
+ },
26
+ "license": "Moebius code: Apache-2.0 (GitHub); weights card: MIT (Hugging Face). VAE: hustvl/PixelHacker.",
27
+ "built": "2026-09-26 11:14:49",
28
+ "vae_from": "moebius-general"
29
+ }
packs/moebius-places2/temb.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1ba3d1fc9081ca7ac324f8c79c537a7c85c57c5d3e9d0cb0446b5177c082077
3
+ size 5120262