Ryouko65777 commited on
Commit
0c8a1f4
1 Parent(s): e04ae6e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -10
README.md CHANGED
@@ -81,18 +81,13 @@ This LoRA extension follows the **FLUX-1-dev Non-Commercial License**.
81
  Below is an example of how to use the FLUX Uncensored LoRA v2 with the `diffusers` library:
82
 
83
  ```python
84
- from diffusers import AutoPipelineForText2Image
85
- import torch
86
 
87
- # Load the base model
88
- pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
89
 
90
- # Load the uncensored LoRA weights
91
- pipeline.load_lora_weights('enhanceaiteam/Flux-uncensored-v2', weight_name='lora.safetensors')
92
-
93
- # Generate an image with an uncensored NSFW prompt
94
- image = pipeline('a naked cute girl').images[0]
95
- image.show()
96
  ```
97
 
98
  # Check out more AI tools and models at [EnhanceAI](https://enhanceai.art)
 
81
  Below is an example of how to use the FLUX Uncensored LoRA v2 with the `diffusers` library:
82
 
83
  ```python
84
+ from diffusers import DiffusionPipeline
 
85
 
86
+ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev")
87
+ pipe.load_lora_weights("Ryouko65777/Flux-Uncensored-V2")
88
 
89
+ prompt = "nsfw nude woman on beach, sunset, long flowing hair, sensual pose"
90
+ image = pipe(prompt).images[0]
 
 
 
 
91
  ```
92
 
93
  # Check out more AI tools and models at [EnhanceAI](https://enhanceai.art)