KvLove commited on
Commit
29241f9
·
1 Parent(s): e6d3cbe

Update LoRA model to Valentin character with examples

Browse files

- Changed trigger word from 'ohwx woman' to 'valentin'
- Added character_lora.safetensors model file
- Updated README with new generation examples (gen1, gen3, gen5, gen7)
- Added assets folder with dataset images and generation examples
- Updated code examples and prompts
- Configured Git LFS for image files

.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
+ *.jpg filter=lfs diff=lfs merge=lfs -text
37
+ *.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -18,7 +18,7 @@ library_name: diffusers
18
 
19
  Lora for [FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev)
20
 
21
- **ohwx woman** trigger word required
22
 
23
  ## 🌟 About FlyMy.AI
24
 
@@ -60,23 +60,23 @@ pipe = pipe.to(device)
60
 
61
  ```python
62
  # Load LoRA weights
63
- pipe.load_lora_weights('flux_anne_hathaway.safetensors', adapter_name="lora")
64
  ```
65
 
66
  ### 🎨 Generate Image with lora trained on person
67
 
68
  ```python
69
- prompt = '''Portrait of ohwx woman, professional headshot, studio lighting, elegant pose, looking at camera, soft shadows, high quality, detailed facial features, cinematic lighting, 85mm lens, shallow depth of field'''
70
  negative_prompt = "blurry, low quality, distorted, bad anatomy"
71
  image = pipe(
72
  prompt=prompt,
73
  negative_prompt=negative_prompt,
74
  width=1024,
75
  height=1024,
76
- num_inference_steps=30,
77
  guidance_scale=3.5,
78
- generator=torch.Generator(device="cuda").manual_seed(346346)
79
- )
80
 
81
  # Display the image (in Jupyter or save to file)
82
  image.show()
@@ -86,41 +86,7 @@ image.save("output.png")
86
 
87
  ### 🖼️ Sample Output
88
 
89
- ![Sample Output](./assets/flux_anne_hathaway.png)
90
-
91
- ## 🎛️ Using with ComfyUI
92
-
93
- We provide a ready-to-use ComfyUI workflow that works with our trained LoRA models. Follow these steps to set up and use the workflow:
94
-
95
- ### Setup Instructions
96
-
97
- 1. **Download the latest ComfyUI**:
98
- - Visit the [ComfyUI GitHub repository](https://github.com/comfyanonymous/ComfyUI)
99
- - Clone or download the latest version
100
-
101
- 2. **Install ComfyUI**:
102
- - Follow the installation instructions from the [ComfyUI repository](https://github.com/comfyanonymous/ComfyUI?tab=readme-ov-file#installing)
103
- - Make sure all dependencies are properly installed
104
-
105
- 3. **Download FLUX.1-dev model weights**:
106
- - Go to [FLUX.1-dev model](https://huggingface.co/black-forest-labs/FLUX.1-dev)
107
- - Download all the model files
108
-
109
- 4. **Place FLUX.1-dev weights in ComfyUI**:
110
- - Copy the downloaded FLUX.1-dev model files to the appropriate folders in `ComfyUI/models/`
111
- - Follow the folder structure as specified in the model repository
112
-
113
- 5. **Download our pre-trained LoRA weights**:
114
- - Visit [flymy-ai/flux-anne-hathaway-lora](https://huggingface.co/flymy-ai/flux-anne-hathaway-lora)
115
- - Download the LoRA `.safetensors` files
116
-
117
- 6. **Place LoRA weights in ComfyUI**:
118
- - Copy the LoRA file `flymy-ai/flux-anne-hathaway-lora/pytorch_lora_weights.safetensors` to `ComfyUI/models/loras/`
119
-
120
- 7. **Load the workflow**:
121
- - Open ComfyUI in your browser
122
- - Load the workflow file `flux_anne_hathaway_lora_example.json` located in this repository
123
- - The workflow is pre-configured to work with our LoRA models
124
 
125
  ### Workflow Features
126
 
@@ -137,27 +103,31 @@ The ComfyUI workflow provides a user-friendly interface for generating images wi
137
 
138
  ## 🎨 Generation Examples
139
 
140
- Below are examples of images generated with our Anne Hathaway LoRA model:
 
 
 
 
 
 
 
 
141
 
142
- ### Casual Portrait Selfie
143
- **Prompt**: *"ohwx woman portrait selfie"*
144
 
145
- ![Casual Portrait Selfie](./assets/1.png)
146
 
147
- ### Artistic Double Exposure
148
- **Prompt**: *"ohwx woman perfectly symmetrical young female face close-up, presented with double exposure overlay blending nature textures like leaves and water"*
149
 
150
- ![Artistic Double Exposure](./assets/2.png)
151
 
152
- ### Golden Hour Macro Portrait
153
- **Prompt**: *"ohwx woman Macro photography style close-up of female face with light makeup, focused on eyes and lips, illuminated by golden hour sunlight for warm tones"*
154
 
155
- ![Golden Hour Macro Portrait](./assets/3.png)
156
 
157
- ### Cozy Portrait with Panda
158
- **Prompt**: *"Close-up of ohwx woman in brown knitted turtleneck sweater. Sitting with big black and white panda, hugging it, looking at camera"*
159
 
160
- ![Cozy Portrait with Panda](./assets/4.png)
161
 
162
  ## 🚀 Try it Online
163
 
 
18
 
19
  Lora for [FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev)
20
 
21
+ **valentin** trigger word required
22
 
23
  ## 🌟 About FlyMy.AI
24
 
 
60
 
61
  ```python
62
  # Load LoRA weights
63
+ pipe.load_lora_weights('character_lora.safetensors', adapter_name="lora")
64
  ```
65
 
66
  ### 🎨 Generate Image with lora trained on person
67
 
68
  ```python
69
+ prompt = '''valentin sitting on a chair, portrait'''
70
  negative_prompt = "blurry, low quality, distorted, bad anatomy"
71
  image = pipe(
72
  prompt=prompt,
73
  negative_prompt=negative_prompt,
74
  width=1024,
75
  height=1024,
76
+ num_inference_steps=28,
77
  guidance_scale=3.5,
78
+ generator=torch.Generator(device="cuda").manual_seed(42)
79
+ ).images[0]
80
 
81
  # Display the image (in Jupyter or save to file)
82
  image.show()
 
86
 
87
  ### 🖼️ Sample Output
88
 
89
+ ![Sample Output](./assets/generations/gen2.jpg)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
  ### Workflow Features
92
 
 
103
 
104
  ## 🎨 Generation Examples
105
 
106
+ Below are examples of images generated with our Valentin LoRA model:
107
+
108
+ ### Official Style Portrait
109
+
110
+ **Prompt**: *"valentin official style portrait"*
111
+
112
+ ![Official Style Portrait](./assets/generations/gen1.jpg)
113
+
114
+ ### Cyberpunk Close-up
115
 
116
+ **Prompt**: *"valentin close up in a cyberpunk aesthetic, neon lighting, holographic elements, wearing futuristic clothing, standing in a neon-lit alley, sci-fi atmosphere, digital art"*
 
117
 
118
+ ![Cyberpunk Close-up](./assets/generations/gen3.jpg)
119
 
120
+ ### Greek City Portrait
 
121
 
122
+ **Prompt**: *"valentin wearing sunglasses and a hat in a Greek city"*
123
 
124
+ ![Greek City Portrait](./assets/generations/gen5.jpg)
 
125
 
126
+ ### Fluorescent Garden Editorial
127
 
128
+ **Prompt**: *"valentin, waist-up, standing in a fluorescent garden under blacklight, glowing bioluminescent plants, saturated purple and green hues, reflective sunglasses catching UV glints, surreal fashion editorial aesthetic, hyperreal depth, cinematic 85mm photography"*
 
129
 
130
+ ![Fluorescent Garden Editorial](./assets/generations/gen7.jpg)
131
 
132
  ## 🚀 Try it Online
133
 
assets/dataset/001.jpg ADDED

Git LFS Details

  • SHA256: 5cca64353d940f3c019ad1ccafc2f146cc5da32fbff2422c1e00e97244e9e17d
  • Pointer size: 131 Bytes
  • Size of remote file: 125 kB
assets/dataset/002.jpg ADDED

Git LFS Details

  • SHA256: 8f6ecaabe62763c39ce752e793daca22112b6fb7dd66930528705ade33f4abac
  • Pointer size: 131 Bytes
  • Size of remote file: 303 kB
assets/dataset/003.jpg ADDED

Git LFS Details

  • SHA256: 9f46520797fc28907b8c0391f3fe8197009cfd7944aa4483e4e05fe3de0f8224
  • Pointer size: 130 Bytes
  • Size of remote file: 63.8 kB
assets/dataset/004.jpg ADDED

Git LFS Details

  • SHA256: 5f4488d34ac286f8c3b36973bbea18b0b204f38c9554f6058bd19c630081a524
  • Pointer size: 131 Bytes
  • Size of remote file: 244 kB
assets/dataset/005.jpg ADDED

Git LFS Details

  • SHA256: 5ca5d8e1f0f5f7a18cbf0e24b2ceaa409ad6f8bcf90b4c94e1035a59ec87c039
  • Pointer size: 131 Bytes
  • Size of remote file: 125 kB
assets/dataset/006.jpg ADDED

Git LFS Details

  • SHA256: c18e3407ec1f84f150b2b1069d147c751c6c36a468ca39b79671f29647c5d8cc
  • Pointer size: 131 Bytes
  • Size of remote file: 139 kB
assets/dataset/007.jpg ADDED

Git LFS Details

  • SHA256: 2086b41ee85af08dc5c8e548a1225a39a86a2edb314f6a4c6a15ce1cb17651a2
  • Pointer size: 131 Bytes
  • Size of remote file: 268 kB
assets/dataset/008.jpg ADDED

Git LFS Details

  • SHA256: 7782fec09f83361ee70348a8064f897e48affe86d603604b4de65f7d518ba06a
  • Pointer size: 131 Bytes
  • Size of remote file: 185 kB
assets/dataset/009.jpg ADDED

Git LFS Details

  • SHA256: 110ab85a507ae77805a86d18883368b18ecbfc242da291dbe5a293fc8e3cd886
  • Pointer size: 131 Bytes
  • Size of remote file: 313 kB
assets/dataset/010.jpg ADDED

Git LFS Details

  • SHA256: 52b7cce7985f602fb1d567bb66c1c29b5d7b2d95d8c9a819595d8759ec8e6a88
  • Pointer size: 131 Bytes
  • Size of remote file: 151 kB
assets/dataset/011.jpg ADDED

Git LFS Details

  • SHA256: 6fa5f7e236cff8fc215590116583ad339a6aedb8e7d26d3f726f241e64b77548
  • Pointer size: 131 Bytes
  • Size of remote file: 208 kB
assets/dataset/012.jpg ADDED

Git LFS Details

  • SHA256: 48daaeb452fb802bfbbc48ad5ab36d35be1e64db10a35aca96a33a2d280ff086
  • Pointer size: 131 Bytes
  • Size of remote file: 179 kB
assets/generations/gen1.jpg ADDED

Git LFS Details

  • SHA256: d8de7940dee219be8dabe1e9730adddb29e9f505ab069cd71d1feb74a5cbade3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
assets/generations/gen2.jpg ADDED

Git LFS Details

  • SHA256: 41cb493191be80cf698caaaad02b0affedc1cf4c99e3fc2fc4d46f3a74d5e414
  • Pointer size: 130 Bytes
  • Size of remote file: 64.8 kB
assets/generations/gen3.jpg ADDED

Git LFS Details

  • SHA256: 989eb0f97ddfd6ddb49bea83b0be949611c8f834ec971e6b44fc81c41ba75f84
  • Pointer size: 132 Bytes
  • Size of remote file: 1.4 MB
assets/generations/gen4.jpg ADDED

Git LFS Details

  • SHA256: 0b24a5a4521571ebbab71b77e9ccbdb442cd77f43e2ad6dbe62b8278b211f5ad
  • Pointer size: 132 Bytes
  • Size of remote file: 1.43 MB
assets/generations/gen5.jpg ADDED

Git LFS Details

  • SHA256: c6c75fbc5dc5e93da8047a32b1548ac05be5ce99568e809e9299ffcc72300aba
  • Pointer size: 132 Bytes
  • Size of remote file: 1.17 MB
assets/generations/gen6.png ADDED

Git LFS Details

  • SHA256: daec583f7ea5fa8e20b9f92010fecae906f3fe8039dfca8dd3d4520fe6c175e3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.16 MB
assets/generations/gen7.jpg ADDED

Git LFS Details

  • SHA256: 795ae3f64347f6d7f5ecd1aab81ccbcfbf9c174b59e42e2e7589ba3271515f2e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
character_lora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:130f2744a42ee2eb1b09205401e0518345677c58ae83c5d527f4486414b1d0ac
3
+ size 179399904