Add files using upload-large-folder tool
Browse files- .gitattributes +3 -0
- README.md +95 -0
- result/output1.png +3 -0
- result/output2.png +3 -0
- result/output3.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
result/output2.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
result/output1.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
result/output3.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- Qwen/Qwen-Image
|
| 7 |
+
tags:
|
| 8 |
+
- image-generation
|
| 9 |
+
- lora
|
| 10 |
+
- Qwen-Image
|
| 11 |
+
pipeline_tag: text-to-image
|
| 12 |
+
library_name: diffusers
|
| 13 |
+
widget:
|
| 14 |
+
- text: >-
|
| 15 |
+
rsq,餐桌上这个女人正在展示自己的乳房
|
| 16 |
+
output:
|
| 17 |
+
url: result/output1.png
|
| 18 |
+
- text: >-
|
| 19 |
+
rsq, The image depicts a young woman sitting on the ground with her legs spread apart, in what appears to be an outdoor setting. She has long brown hair and is smiling at the camera. The background shows greenery, suggesting she might be in a park or garden. Her pose and expression convey confidence and comfort.
|
| 20 |
+
output:
|
| 21 |
+
url: result/output2.png
|
| 22 |
+
- text: >-
|
| 23 |
+
rsq,一个性感年轻的中国女人穿着裸体透明的护士情趣套装,双手举过头顶一个牌子“不要搞色情!”
|
| 24 |
+
output:
|
| 25 |
+
url: result/output3.png
|
| 26 |
+
---
|
| 27 |
+
# starsfriday Qwen-Image LoRA
|
| 28 |
+
|
| 29 |
+
<Gallery />
|
| 30 |
+
|
| 31 |
+
## Model Card for Model ID
|
| 32 |
+
|
| 33 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 34 |
+
|
| 35 |
+
This is a model for Qwen-Image in Portrait generation, trained on ```Qwen/Qwen-Image```, and It is mainly used for generating images of nsfw.For use in through the following code and ```ComfyUI```,The workflow files are in the folder of this project.
|
| 36 |
+
|
| 37 |
+
<div style="background-color: white; padding: 15px; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
| 38 |
+
<h2 style="color: #24292e; margin-top: 0;">ComfyUI Workflow</h2>
|
| 39 |
+
<p>This LoRA works with a modified version of <a href="https://huggingface.co/starsfriday/Qwen-Image-EVA-LoRA/blob/main/Workflow-Qwen-Image-LORA.json" style="color: #0366d6; text-decoration: none;">Comfy's Qwen-Image workflow</a>. The main modification is adding a Qwen-Image LoRA node connected to the base model.</p>
|
| 40 |
+
<p>See the Downloads section above for the modified workflow.</p>
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
### Direct Use
|
| 44 |
+
|
| 45 |
+
```
|
| 46 |
+
from diffusers import DiffusionPipeline
|
| 47 |
+
import torch
|
| 48 |
+
|
| 49 |
+
model_name = "Qwen/Qwen-Image"
|
| 50 |
+
|
| 51 |
+
# Load the pipeline
|
| 52 |
+
if torch.cuda.is_available():
|
| 53 |
+
torch_dtype = torch.bfloat16
|
| 54 |
+
device = "cuda"
|
| 55 |
+
else:
|
| 56 |
+
torch_dtype = torch.float32
|
| 57 |
+
device = "cpu"
|
| 58 |
+
|
| 59 |
+
pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
|
| 60 |
+
pipe = pipe.to(device)
|
| 61 |
+
|
| 62 |
+
# Load LoRA weights
|
| 63 |
+
pipe.load_lora_weights('starsfriday/Qwen-Image-NSFW/qwen_image_nsfw.safetensors', adapter_name="lora")
|
| 64 |
+
|
| 65 |
+
prompt = '''rsq, The image depicts a young woman sitting on the ground with her legs spread apart, in what appears to be an outdoor setting. She has long brown hair and is smiling at the camera. The background shows greenery, suggesting she might be in a park or garden. Her pose and expression convey confidence and comfort. '''
|
| 66 |
+
negative_prompt = " "
|
| 67 |
+
image = pipe(
|
| 68 |
+
prompt=prompt,
|
| 69 |
+
negative_prompt=negative_prompt,
|
| 70 |
+
width=1024,
|
| 71 |
+
height=1024,
|
| 72 |
+
num_inference_steps=50,
|
| 73 |
+
true_cfg_scale=5,
|
| 74 |
+
generator=torch.Generator(device="cuda").manual_seed(123456)
|
| 75 |
+
)
|
| 76 |
+
image = image.images[0]
|
| 77 |
+
|
| 78 |
+
image.save("output.png")
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
## Trigger phrase
|
| 83 |
+
|
| 84 |
+
```rsq```
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
## Download model
|
| 88 |
+
|
| 89 |
+
Weights for this model are available in Safetensors format.
|
| 90 |
+
|
| 91 |
+
[Download](https://huggingface.co/starsfriday/Qwen-Image-EVA-LoRA)
|
| 92 |
+
|
| 93 |
+
## Training at Chongqing Valiant Cat
|
| 94 |
+
|
| 95 |
+
This model was trained by the AI Laboratory of Chongqing Valiant Cat Technology Co., LTD(```https://vvicat.com/```).Business cooperation is welcome
|
result/output1.png
ADDED
|
Git LFS Details
|
result/output2.png
ADDED
|
Git LFS Details
|
result/output3.png
ADDED
|
Git LFS Details
|