Instructions to use NoMoreCopyright/FLUX.1-dev-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use NoMoreCopyright/FLUX.1-dev-test with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("NoMoreCopyright/FLUX.1-dev-test", 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 handler.py
Browse files- handler.py +2 -1
handler.py
CHANGED
|
@@ -18,7 +18,8 @@ def compile_pipeline(pipe):
|
|
| 18 |
class EndpointHandler:
|
| 19 |
def __init__(self, **kwargs: Any) -> None: # type: ignore
|
| 20 |
is_compile = False
|
| 21 |
-
repo_id = "camenduru/FLUX.1-dev-diffusers"
|
|
|
|
| 22 |
dtype = torch.bfloat16
|
| 23 |
quantization_config = TorchAoConfig("int4dq")
|
| 24 |
vae = AutoencoderKL.from_pretrained(repo_id, subfolder="vae", torch_dtype=dtype)
|
|
|
|
| 18 |
class EndpointHandler:
|
| 19 |
def __init__(self, **kwargs: Any) -> None: # type: ignore
|
| 20 |
is_compile = False
|
| 21 |
+
#repo_id = "camenduru/FLUX.1-dev-diffusers"
|
| 22 |
+
repo_id = "NoMoreCopyright/FLUX.1-dev-test"
|
| 23 |
dtype = torch.bfloat16
|
| 24 |
quantization_config = TorchAoConfig("int4dq")
|
| 25 |
vae = AutoencoderKL.from_pretrained(repo_id, subfolder="vae", torch_dtype=dtype)
|