multimodalart HF staff commited on
Commit
399ea0a
1 Parent(s): f095d56
Files changed (1) hide show
  1. README.md +0 -31
README.md CHANGED
@@ -31,37 +31,6 @@ The FLUX.1 models are also available via API from the following sources
31
  ## ComfyUI
32
  `FLUX.1 [schnell]` is also available in [Comfy UI](https://github.com/comfyanonymous/ComfyUI) for local inference with a node-based workflow.
33
 
34
- ## Diffusers
35
-
36
- To use Flux with the 🧨 diffusers python library, first install or upgrade diffusers
37
-
38
- ```shell
39
- pip install diffusers@git+https://github.com/huggingface/diffusers.git
40
- ```
41
-
42
- Then you can use `FluxPipeline` to run the model
43
-
44
- ```python
45
- import torch
46
- from diffusers import FluxPipeline
47
-
48
- pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16)
49
- pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
50
-
51
- prompt = "A cat holding a sign that says hello world"
52
- image = pipe(
53
- prompt,
54
- guidance_scale=0.0,
55
- output_type="pil",
56
- num_inference_steps=4,
57
- max_sequence_length=256,
58
- generator=torch.Generator("cpu").manual_seed(0)
59
- ).images[0]
60
- image.save("flux-schnell.png")
61
- ```
62
-
63
- To learn mode check out the [diffusers](https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux) documentation
64
-
65
  ---
66
  # Limitations
67
  - This model is not intended or able to provide factual information.
 
31
  ## ComfyUI
32
  `FLUX.1 [schnell]` is also available in [Comfy UI](https://github.com/comfyanonymous/ComfyUI) for local inference with a node-based workflow.
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ---
35
  # Limitations
36
  - This model is not intended or able to provide factual information.