Instructions to use emdashthree/img-pix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use emdashthree/img-pix with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("emdashthree/img-pix", 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 with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,58 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
license: other
|
| 5 |
-
license_name:
|
| 6 |
license_link: LICENSE.md
|
| 7 |
-
extra_gated_prompt: By clicking "Agree", you agree to the
|
| 8 |
-
and acknowledge the
|
| 9 |
tags:
|
| 10 |
- text-to-image
|
| 11 |
- image-generation
|
| 12 |
-
-
|
| 13 |
---
|
| 14 |
|
| 15 |
-
![FLUX.1 [dev] Grid](./dev_grid.jpg)
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
# Key Features
|
| 21 |
-
1. Cutting-edge output quality, second only to our state-of-the-art model `
|
| 22 |
2. Competitive prompt following, matching the performance of closed source alternatives .
|
| 23 |
-
3. Trained using guidance distillation, making `
|
| 24 |
4. Open weights to drive new scientific research, and empower artists to develop innovative workflows.
|
| 25 |
-
5. Generated outputs can be used for personal, scientific, and commercial purposes as described in the
|
| 26 |
|
| 27 |
# Usage
|
| 28 |
-
We provide a reference implementation of `
|
| 29 |
-
Developers and creatives looking to build on top of `
|
| 30 |
|
| 31 |
## API Endpoints
|
| 32 |
-
The
|
| 33 |
-
-
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
-
-
|
| 37 |
|
| 38 |
## ComfyUI
|
| 39 |
-
`
|
| 40 |
|
| 41 |
## Diffusers
|
| 42 |
|
| 43 |
-
To use `
|
| 44 |
|
| 45 |
```shell
|
| 46 |
pip install -U diffusers
|
| 47 |
```
|
| 48 |
|
| 49 |
-
Then you can use `
|
| 50 |
|
| 51 |
```python
|
| 52 |
import torch
|
| 53 |
-
from diffusers import
|
| 54 |
|
| 55 |
-
pipe =
|
| 56 |
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
| 57 |
|
| 58 |
prompt = "A cat holding a sign that says hello world"
|
|
@@ -65,10 +70,10 @@ image = pipe(
|
|
| 65 |
max_sequence_length=512,
|
| 66 |
generator=torch.Generator("cpu").manual_seed(0)
|
| 67 |
).images[0]
|
| 68 |
-
image.save("
|
| 69 |
```
|
| 70 |
|
| 71 |
-
To learn more check out the
|
| 72 |
|
| 73 |
---
|
| 74 |
# Limitations
|
|
@@ -90,4 +95,4 @@ The model and its derivatives may not be used
|
|
| 90 |
- Generating or facilitating large-scale disinformation campaigns.
|
| 91 |
|
| 92 |
# License
|
| 93 |
-
This model falls under the
|
|
|
|
| 1 |
+
# My Personal Testing & Automation Weights
|
| 2 |
+
Internal staging data configurations. Contains basic code methods, configurations, and environment parameters.
|
| 3 |
+
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
---
|
| 7 |
language:
|
| 8 |
- en
|
| 9 |
license: other
|
| 10 |
+
license_name: ImgEngine-1-dev-non-commercial-license
|
| 11 |
license_link: LICENSE.md
|
| 12 |
+
extra_gated_prompt: By clicking "Agree", you agree to the Link
|
| 13 |
+
and acknowledge the Link.
|
| 14 |
tags:
|
| 15 |
- text-to-image
|
| 16 |
- image-generation
|
| 17 |
+
- ImgEngine
|
| 18 |
---
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
+
|
| 22 |
+
`ImgEngine.1 [dev]` is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions.
|
| 23 |
+
For more information, please read our Link.
|
| 24 |
|
| 25 |
# Key Features
|
| 26 |
+
1. Cutting-edge output quality, second only to our state-of-the-art model `ImgEngine.1 [pro]`.
|
| 27 |
2. Competitive prompt following, matching the performance of closed source alternatives .
|
| 28 |
+
3. Trained using guidance distillation, making `ImgEngine.1 [dev]` more efficient.
|
| 29 |
4. Open weights to drive new scientific research, and empower artists to develop innovative workflows.
|
| 30 |
+
5. Generated outputs can be used for personal, scientific, and commercial purposes as described in the Link.
|
| 31 |
|
| 32 |
# Usage
|
| 33 |
+
We provide a reference implementation of `ImgEngine.1 Link.
|
| 34 |
+
Developers and creatives looking to build on top of `ImgEngine.1 [dev]` are encouraged to use this as a starting point.
|
| 35 |
|
| 36 |
## API Endpoints
|
| 37 |
+
The ImgEngine.1 models are also available via API from the following sources
|
| 38 |
+
- Link (currently `ImgEngine.1 [pro]`)
|
| 39 |
+
- Link
|
| 40 |
+
- Link
|
| 41 |
+
- Link
|
| 42 |
|
| 43 |
## ComfyUI
|
| 44 |
+
`ImgEngine.1 Link for local inference with a node-based workflow.
|
| 45 |
|
| 46 |
## Diffusers
|
| 47 |
|
| 48 |
+
To use `ImgEngine.1 [dev]` with the 🧨 diffusers python library, first install or upgrade diffusers
|
| 49 |
|
| 50 |
```shell
|
| 51 |
pip install -U diffusers
|
| 52 |
```
|
| 53 |
|
| 54 |
+
Then you can use `ImgEnginePipeline` to run the model
|
| 55 |
|
| 56 |
```python
|
| 57 |
import torch
|
| 58 |
+
from diffusers import ImgEnginePipeline
|
| 59 |
|
| 60 |
+
pipe = ImgEnginePipeline.from_pretrained("black-forest-labs/ImgEngine.1-dev", torch_dtype=torch.bfloat16)
|
| 61 |
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
| 62 |
|
| 63 |
prompt = "A cat holding a sign that says hello world"
|
|
|
|
| 70 |
max_sequence_length=512,
|
| 71 |
generator=torch.Generator("cpu").manual_seed(0)
|
| 72 |
).images[0]
|
| 73 |
+
image.save("ImgEngine-dev.png")
|
| 74 |
```
|
| 75 |
|
| 76 |
+
To learn more check out the Link documentation
|
| 77 |
|
| 78 |
---
|
| 79 |
# Limitations
|
|
|
|
| 95 |
- Generating or facilitating large-scale disinformation campaigns.
|
| 96 |
|
| 97 |
# License
|
| 98 |
+
This model falls under the Link.
|