Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- New Kontext clothes remover LoRa...
- Hey guys, I spent some time yesterday training my own clothes remover LoRa for Kontext and I was very impressed by the results so I thought I have to share. If you are interested in details about the dataset, captions and prompts read below.
- Results are best if the input- and output-image have the same resolution so make sure to bypass any Image Rescaling nodes.
- __________________________________
- Example Images (side by side):
- DISCLAIMER: The image used for these examples is a Flux generated image with one of my character LoRas and does not depict a real person.
- Static Pose:
- https://freeimage.host/i/F7PGRBs
- Different Pose:
- https://freeimage.host/i/F7PGuQn
- __________________________________
- Here is the download:
- https://mega.nz/file/nsxhAToB#PFovJLgZv_o-KOQmn6XveqvRUHyZj9sPJuihK3_akOI
- And here is the Workflow I used to generate the images with the LoRa (Full credit to Ostris, its from his LoRa training guide)
- https://pastebin.com/vYnttdEF
- __________________________________
- ABOUT THE MODEL
- The LoRa was trained on 80 hand-picked NSFW on/off photo pairs gathered mostly from reddit. Every pair was captioned by hand to make sure to differentiate between the two major categories:
- - Identical Pairs: Pairs where the start and end image are exactly (or very close to) the same except for clothing of course.
- - Different Images: Pairs where changes in poses etc. between start and end image differ enough that it could cause the model to learn that its fine to not stick closely to the reference image even if prompted for it.
- CAPTIONS
- Here are example captions from the dataset for both an Identical Pair and "Different Image":
- Identical:
- "Completely remove the subjects clothes. She is now standing completely naked, her small breasts and vagina with pubic hair fully exposed. She has a small belly-button piercing. Maintain identical subject placement, camera angle, framing, and perspective. The rest of the image remains the same, only completely remove her clothes to expose her naked body."
- Different:
- "The image now looks like a different photo of the same subject. All of her clothes are now removed. She is now posing completely naked. Her medium sized breasts and clean shaven vagina on full display. She is now posing with her hands tangling in her own hair. Maintain identical subject placement, camera angle, framing, and perspective. The rest of the image remains the same, only remove her clothes to expose her breasts and vagina and change her pose."
- As you can tell, the block {Maintain identical subject placement, camera angle, framing, and perspective. The rest of the image remains the same, only ...} comes up in both caption types to reinforce the prompt so I recommend using this or something similar in your own prompts.
- Because of these prompting categories the model works very well both when simply removing clothes and creating a new image of the same subject in a different pose (see example images).
- PROMPTS
- Here are the example prompts for static and different images that are general enough to have worked well on different images when generating with the model. Make sure to adjust these to your needs, depending on your image, for example if you use a portrait shot you may not want to include the vagina parts of the prompts.
- Identical:
- "Completely remove the subjects clothes. Her clothes are now completely removed to expose her small breasts and clean shaven vagina. Maintain identical camera angle, framing, and perspective and make sure to leave her facial features identical. The rest of the image remains the same, only remove her clothes to expose her naked body."
- Different:
- "The image now looks like a different photo of the same subject. Her clothes are now completely removed to expose her small breasts and clean shaven vagina and she is now standing in a seductive pose. Maintain identical camera angle, framing, and perspective. The rest of the image remains the same, make sure to leave her facial features identical, only remove her clothes to expose her breasts and vagina and change her pose."
Add Comment
Please, Sign In to add comment