Instructions to use OzzyGT/MOSS_Image_SFT_diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/MOSS_Image_SFT_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("OzzyGT/MOSS_Image_SFT_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 README.md
Browse files
README.md
CHANGED
|
@@ -14,6 +14,9 @@ tags:
|
|
| 14 |
|
| 15 |
# MOSS-Image SFT
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |

|
| 18 |
|
| 19 |
This is [OpenMOSS-Team/MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT) converted to the standard diffusers layout, so it runs as a Modular Diffusers pipeline with the custom blocks below instead of the custom pipeline shipped in the original repository. The weights are the original bf16 ones.
|
|
@@ -47,6 +50,7 @@ from diffusers import ModularPipelineBlocks
|
|
| 47 |
|
| 48 |
blocks = ModularPipelineBlocks.from_pretrained(
|
| 49 |
"OzzyGT/moss_image_custom_blocks",
|
|
|
|
| 50 |
trust_remote_code=True,
|
| 51 |
components_repo="OzzyGT/MOSS_Image_SFT_diffusers",
|
| 52 |
trust_components_code=True,
|
|
|
|
| 14 |
|
| 15 |
# MOSS-Image SFT
|
| 16 |
|
| 17 |
+
> [!WARNING]
|
| 18 |
+
> **Discontinued:** this repository uses a converted layout that is no longer updated. The [MOSS-Image blocks](https://huggingface.co/OzzyGT/moss_image_custom_blocks) now load [OpenMOSS-Team/MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT) directly, so use that instead. This repository still works with the last blocks version that supports it, by passing `revision="diffusers_layout"` as in the example below.
|
| 19 |
+
|
| 20 |

|
| 21 |
|
| 22 |
This is [OpenMOSS-Team/MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT) converted to the standard diffusers layout, so it runs as a Modular Diffusers pipeline with the custom blocks below instead of the custom pipeline shipped in the original repository. The weights are the original bf16 ones.
|
|
|
|
| 50 |
|
| 51 |
blocks = ModularPipelineBlocks.from_pretrained(
|
| 52 |
"OzzyGT/moss_image_custom_blocks",
|
| 53 |
+
revision="diffusers_layout",
|
| 54 |
trust_remote_code=True,
|
| 55 |
components_repo="OzzyGT/MOSS_Image_SFT_diffusers",
|
| 56 |
trust_components_code=True,
|