Instructions to use linoyts/beyond-reality-z-image-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use linoyts/beyond-reality-z-image-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("linoyts/beyond-reality-z-image-diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse files- README.md +6 -2
- config.json +27 -12
- diffusion_pytorch_model.safetensors +2 -2
README.md
CHANGED
|
@@ -58,6 +58,10 @@ image.save("output.png")
|
|
| 58 |
## Conversion Details
|
| 59 |
|
| 60 |
The model was converted from ComfyUI format to diffusers format with the following key transformations:
|
| 61 |
-
-
|
|
|
|
|
|
|
|
|
|
| 62 |
- Renamed `attention.out` to `attention.to_out.0`
|
| 63 |
-
- Renamed
|
|
|
|
|
|
| 58 |
## Conversion Details
|
| 59 |
|
| 60 |
The model was converted from ComfyUI format to diffusers format with the following key transformations:
|
| 61 |
+
- Removed `model.diffusion_model.` prefix from all keys
|
| 62 |
+
- Renamed `x_embedder` to `all_x_embedder.2-1`
|
| 63 |
+
- Renamed `final_layer` to `all_final_layer.2-1`
|
| 64 |
+
- Split `attention.qkv` into `attention.to_q`, `attention.to_k`, `attention.to_v`
|
| 65 |
- Renamed `attention.out` to `attention.to_out.0`
|
| 66 |
+
- Renamed `attention.q_norm` to `attention.norm_q`
|
| 67 |
+
- Renamed `attention.k_norm` to `attention.norm_k`
|
config.json
CHANGED
|
@@ -1,16 +1,31 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "ZImageTransformer2DModel",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
-
"
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"in_channels": 16,
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
"
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
-
"text_embed_dim": 4096
|
| 16 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "ZImageTransformer2DModel",
|
| 3 |
+
"_diffusers_version": "0.36.0.dev0",
|
| 4 |
+
"all_f_patch_size": [
|
| 5 |
+
1
|
| 6 |
+
],
|
| 7 |
+
"all_patch_size": [
|
| 8 |
+
2
|
| 9 |
+
],
|
| 10 |
+
"axes_dims": [
|
| 11 |
+
32,
|
| 12 |
+
48,
|
| 13 |
+
48
|
| 14 |
+
],
|
| 15 |
+
"axes_lens": [
|
| 16 |
+
1536,
|
| 17 |
+
512,
|
| 18 |
+
512
|
| 19 |
+
],
|
| 20 |
+
"cap_feat_dim": 2560,
|
| 21 |
+
"dim": 3840,
|
| 22 |
"in_channels": 16,
|
| 23 |
+
"n_heads": 30,
|
| 24 |
+
"n_kv_heads": 30,
|
| 25 |
+
"n_layers": 30,
|
| 26 |
+
"n_refiner_layers": 2,
|
| 27 |
+
"norm_eps": 1e-05,
|
| 28 |
+
"qk_norm": true,
|
| 29 |
+
"rope_theta": 256.0,
|
| 30 |
+
"t_scale": 1000.0
|
|
|
|
| 31 |
}
|
diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2002fbb39c9790b408efc6fd3f92f5ed25e68b4e94d347231de992f78ee68968
|
| 3 |
+
size 12309881888
|