SceneWorks commited on
Commit
39d7b0a
·
verified ·
1 Parent(s): d30ea92

Re-host: PiD qwenimage 2kto4k decoder (NVIDIA License / non-commercial) — converted from nvidia/PiD model_ema_bf16.pth (sc-7852)

Browse files
Files changed (4) hide show
  1. LICENSE +34 -0
  2. NOTICE +50 -0
  3. README.md +61 -0
  4. pid_qwenimage_2kto4k.safetensors +3 -0
LICENSE ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ NVIDIA License
2
+
3
+ 1. Definitions
4
+
5
+ "Licensor" means any person or entity that distributes its Work.
6
+ "Work" means (a) the original work of authorship made available under this license, which may include software, documentation, or other files, and (b) any additions to or derivative works thereof that are made available under this license.
7
+ The terms "reproduce," "reproduction," "derivative works," and "distribution" have the meaning as provided under U.S. copyright law; provided, however, that for the purposes of this license, derivative works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work.
8
+ Works are "made available" under this license by including in or with the Work either (a) a copyright notice referencing the applicability of this license to the Work, or (b) a copy of this license.
9
+
10
+ 2. License Grant
11
+
12
+ 2.1 Copyright Grant. Subject to the terms and conditions of this license, each Licensor grants to you a perpetual, worldwide, non-exclusive, royalty-free, copyright license to use, reproduce, prepare derivative works of, publicly display, publicly perform, sublicense and distribute its Work and any resulting derivative works in any form.
13
+
14
+ 3. Limitations
15
+
16
+ 3.1 Redistribution. You may reproduce or distribute the Work only if (a) you do so under this license, (b) you include a complete copy of this license with your distribution, and (c) you retain without modification any copyright, patent, trademark, or attribution notices that are present in the Work.
17
+
18
+ 3.2 Derivative Works. You may specify that additional or different terms apply to the use, reproduction, and distribution of your derivative works of the Work ("Your Terms") only if (a) Your Terms provide that the use limitation in Section 3.3 applies to your derivative works, and (b) you identify the specific derivative works that are subject to Your Terms. Notwithstanding Your Terms, this license (including the redistribution requirements in Section 3.1) will continue to apply to the Work itself.
19
+
20
+ 3.3 Use Limitation. The Work and any derivative works thereof only may be used or intended for use non-commercially. Notwithstanding the foregoing, NVIDIA Corporation and its affiliates may use the Work and any derivative works commercially. As used herein, "non-commercially" means for research or evaluation purposes only.
21
+
22
+ 3.4 Patent Claims. If you bring or threaten to bring a patent claim against any Licensor (including any claim, cross-claim or counterclaim in a lawsuit) to enforce any patents that you allege are infringed by any Work, then your rights under this license from such Licensor (including the grant in Section 2.1) will terminate immediately.
23
+
24
+ 3.5 Trademarks. This license does not grant any rights to use any Licensor's or its affiliates' names, logos, or trademarks, except as necessary to reproduce the notices described in this license.
25
+
26
+ 3.6 Termination. If you violate any term of this license, then your rights under this license (including the grant in Section 2.1) will terminate immediately.
27
+
28
+ 4. Disclaimer of Warranty.
29
+
30
+ THE WORK IS PROVIDED "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT. YOU BEAR THE RISK OF UNDERTAKING ANY ACTIVITIES UNDER THIS LICENSE.
31
+
32
+ 5. Limitation of Liability.
33
+
34
+ EXCEPT AS PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE SHALL ANY LICENSOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATED TO THIS LICENSE, THE USE OR INABILITY TO USE THE WORK (INCLUDING BUT NOT LIMITED TO LOSS OF GOODWILL, BUSINESS INTERRUPTION, LOST PROFITS OR DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY OTHER DAMAGES OR LOSSES), EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
NOTICE ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PiD — Pixel Diffusion Decoder (qwenimage 2kto4k student)
2
+ =========================================================
3
+
4
+ This repository redistributes a converted copy of a model checkpoint
5
+ originally produced and released by NVIDIA Corporation.
6
+
7
+ Original work
8
+ -------------
9
+ Name: PiD (Pixel Diffusion) — PixelDiT distillation decoders
10
+ Author: NVIDIA Corporation and its affiliates (NVIDIA Toronto AI Lab)
11
+ Source: https://huggingface.co/nvidia/PiD
12
+ Project: https://research.nvidia.com/labs/sil/projects/pid/
13
+ Code: https://github.com/nv-tlabs/pid
14
+ Paper: arXiv:2605.23902
15
+ Original checkpoint:
16
+ checkpoints/PiD_res2kto4k_sr4x_official_qwenimage_distill_4step/model_ema_bf16.pth
17
+
18
+ What was changed
19
+ ----------------
20
+ The original PyTorch checkpoint (`model_ema_bf16.pth`) was converted to
21
+ safetensors format for use by SceneWorks' native MLX/candle PiD decoder
22
+ (`mlx-gen-pid`). The conversion is a lossless key/format transform only:
23
+ training-only tensors (`net_ema.*`, `fake_score.*`, `discriminator.*`) are
24
+ dropped and the `net.` prefix is stripped, per the reference inference
25
+ loader (`pid_distill_model.py::PidDistillModel.load_state_dict`). Tensor
26
+ values and dtype (bfloat16) are unchanged. No re-training or fine-tuning
27
+ was performed.
28
+
29
+ License
30
+ -------
31
+ This work and the original are licensed under the NVIDIA License (the
32
+ license HuggingFace tags as "NSCLv1"). The full license text is in the
33
+ accompanying LICENSE file and applies to this redistribution and to any
34
+ derivative works.
35
+
36
+ USE LIMITATION (NVIDIA License §3.3): The Work and any derivative works
37
+ thereof may only be used, or be intended for use, NON-COMMERCIALLY —
38
+ i.e. for RESEARCH OR EVALUATION PURPOSES ONLY. (NVIDIA Corporation and its
39
+ affiliates may use the Work commercially.)
40
+
41
+ This non-commercial restriction FLOWS TO THE OUTPUT: images decoded with
42
+ this PiD decoder are for research/evaluation use only and are distinct in
43
+ that respect from images produced by the rest of the SceneWorks pipeline.
44
+
45
+ Per NVIDIA License §3.1, this distribution (a) is under the same license,
46
+ (b) includes a complete copy of the license, and (c) retains all
47
+ copyright/patent/trademark/attribution notices present in the original Work.
48
+
49
+ NVIDIA's name, logos, and trademarks are not used except as necessary to
50
+ reproduce these notices (NVIDIA License §3.5).
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: nvidia-license
4
+ license_link: LICENSE
5
+ tags:
6
+ - pixel-diffusion
7
+ - decoder
8
+ - super-resolution
9
+ - non-commercial
10
+ - sceneworks
11
+ extra_gated_prompt: >-
12
+ This model is licensed under the NVIDIA License (NSCLv1). It and any
13
+ derivative works may be used for NON-COMMERCIAL (research or evaluation)
14
+ purposes only. The non-commercial restriction flows to decoded output.
15
+ ---
16
+
17
+ # PiD — qwenimage 2kto4k decoder (SceneWorks redistribution)
18
+
19
+ A format-converted redistribution of NVIDIA's **PiD** (Pixel Diffusion) `qwenimage`
20
+ 4-step distillation decoder, packaged for SceneWorks' native (no-PyTorch) PiD
21
+ decoder (`mlx-gen-pid` on macOS/MLX, `candle-gen-pid` on Windows·Linux/CUDA).
22
+
23
+ PiD is an **optional, per-generation replacement for the VAE decoder**: it denoises
24
+ directly in pixel space and **decodes + 4× super-resolves in one 4-step pass**. In
25
+ SceneWorks it is toggled per generation (`advanced.usePid`) for Qwen-Image-family
26
+ latent-space models (Qwen-Image, Qwen-Image-Edit, Krea 2 Turbo).
27
+
28
+ ## ⚠️ License — non-commercial (research/evaluation) only
29
+
30
+ This checkpoint is under the **NVIDIA License** (HuggingFace tag `NSCLv1`); see
31
+ [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE). Per **§3.3**, the Work and any
32
+ derivative works may be used **non-commercially — for research or evaluation
33
+ purposes only** (NVIDIA and its affiliates excepted).
34
+
35
+ **This restriction flows to the output.** Images decoded with PiD are for
36
+ research/evaluation use only, distinct from the rest of the SceneWorks pipeline.
37
+ SceneWorks surfaces this as a non-commercial label on the PiD toggle and on
38
+ PiD-decoded output.
39
+
40
+ ## Contents
41
+
42
+ | File | Description |
43
+ |------|-------------|
44
+ | `pid_qwenimage_2kto4k.safetensors` | qwenimage `2kto4k` 4-step student backbone + sigma-aware LQ adapter (456 tensors, bf16, ~2.7 GB). |
45
+ | `LICENSE` | Full NVIDIA License text (verbatim from the original release). |
46
+ | `NOTICE` | NVIDIA attribution, provenance, and the exact conversion performed. |
47
+
48
+ The PiD caption encoder (`gemma-2-2b-it`) and the Qwen-Image VAE are provisioned
49
+ separately by SceneWorks; this repo holds only the PiD student weights.
50
+
51
+ ## Provenance / conversion
52
+
53
+ Converted from NVIDIA's original
54
+ `checkpoints/PiD_res2kto4k_sr4x_official_qwenimage_distill_4step/model_ema_bf16.pth`
55
+ (from [`nvidia/PiD`](https://huggingface.co/nvidia/PiD)) via a lossless
56
+ key/format transform (`net.`-prefix strip + drop training-only
57
+ `net_ema.*`/`fake_score.*`/`discriminator.*`; dtype preserved). No re-training.
58
+
59
+ - Project: https://research.nvidia.com/labs/sil/projects/pid/
60
+ - Code: https://github.com/nv-tlabs/pid
61
+ - Paper: arXiv:2605.23902
pid_qwenimage_2kto4k.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84c22c73de83d3780b4c33784ea0ad9f91fdce911ec5f760cbd6dffe0588e507
3
+ size 2724745532