Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
rift1_decoder
text-to-image
image-editing
decoder
Instructions to use Rift-ai/Rift.1-decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Rift-ai/Rift.1-decoder with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Rift-ai/Rift.1-decoder", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Diffusion Single File
How to use Rift-ai/Rift.1-decoder with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload 9 files
Browse files- .gitattributes +4 -0
- compare_full_decoder.png +3 -0
- compare_small_decoder.png +3 -0
- comparison_panel.jpeg +3 -0
- config.json +53 -0
- detail_zoom.jpeg +3 -0
- diffusion_pytorch_model.safetensors +3 -0
- editing.jpg +0 -0
- full_encoder_small_decoder.safetensors +3 -0
- small_decoder.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 36 |
+
compare_full_decoder.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
compare_small_decoder.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
comparison_panel.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
detail_zoom.jpeg filter=lfs diff=lfs merge=lfs -text
|
compare_full_decoder.png
ADDED
|
Git LFS Details
|
compare_small_decoder.png
ADDED
|
Git LFS Details
|
comparison_panel.jpeg
ADDED
|
Git LFS Details
|
config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "AutoencoderKLFlux2",
|
| 3 |
+
"_diffusers_version": "0.32.0.dev0",
|
| 4 |
+
"_name_or_path": "Rift-ai/Rift.1-decoder",
|
| 5 |
+
"architectures": [
|
| 6 |
+
"Rift1Decoder"
|
| 7 |
+
],
|
| 8 |
+
"model_type": "rift1_decoder",
|
| 9 |
+
"rift_class_name": "Rift1Decoder",
|
| 10 |
+
"base_model_class": "AutoencoderKLFlux2",
|
| 11 |
+
"manufacturer": "Rift-ai",
|
| 12 |
+
"in_channels": 3,
|
| 13 |
+
"out_channels": 3,
|
| 14 |
+
"down_block_types": [
|
| 15 |
+
"DownEncoderBlock2D",
|
| 16 |
+
"DownEncoderBlock2D",
|
| 17 |
+
"DownEncoderBlock2D",
|
| 18 |
+
"DownEncoderBlock2D"
|
| 19 |
+
],
|
| 20 |
+
"up_block_types": [
|
| 21 |
+
"UpDecoderBlock2D",
|
| 22 |
+
"UpDecoderBlock2D",
|
| 23 |
+
"UpDecoderBlock2D",
|
| 24 |
+
"UpDecoderBlock2D"
|
| 25 |
+
],
|
| 26 |
+
"block_out_channels": [
|
| 27 |
+
128,
|
| 28 |
+
256,
|
| 29 |
+
512,
|
| 30 |
+
512
|
| 31 |
+
],
|
| 32 |
+
"decoder_block_out_channels": [
|
| 33 |
+
128,
|
| 34 |
+
256,
|
| 35 |
+
512,
|
| 36 |
+
512
|
| 37 |
+
],
|
| 38 |
+
"layers_per_block": 2,
|
| 39 |
+
"act_fn": "silu",
|
| 40 |
+
"latent_channels": 32,
|
| 41 |
+
"norm_num_groups": 32,
|
| 42 |
+
"sample_size": 1024,
|
| 43 |
+
"force_upcast": true,
|
| 44 |
+
"use_quant_conv": true,
|
| 45 |
+
"use_post_quant_conv": true,
|
| 46 |
+
"mid_block_add_attention": true,
|
| 47 |
+
"batch_norm_eps": 0.0001,
|
| 48 |
+
"batch_norm_momentum": 0.1,
|
| 49 |
+
"patch_size": [
|
| 50 |
+
2,
|
| 51 |
+
2
|
| 52 |
+
]
|
| 53 |
+
}
|
detail_zoom.jpeg
ADDED
|
Git LFS Details
|
diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7eb44e4096efcdda985fa01bed66406b61c44a79f83e854179d5fb82462103d6
|
| 3 |
+
size 168120878
|
editing.jpg
ADDED
|
full_encoder_small_decoder.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d0d53a9a6adadf91a14720a6ce0cf8a61f1c095c9754c60d2f2ea1cfff0be79
|
| 3 |
+
size 168120846
|
small_decoder.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f53bbeb5d4487a348137edf33faf277cc5de3766576bd35217bb2d67b8844e8
|
| 3 |
+
size 99256038
|