Instructions to use HuggingVince/H4n4ged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use HuggingVince/H4n4ged with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Turbo", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("HuggingVince/H4n4ged") prompt = "an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:\"being a very naughty boy\".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Turbo", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("HuggingVince/H4n4ged")
prompt = "an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:\"being a very naughty boy\".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope"
image = pipe(prompt).images[0]H4n4ged

- Prompt
- an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:"being a very naughty boy".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope

- Prompt
- an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:"being a very naughty boy".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope

- Prompt
- an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:"being a very naughty boy".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope

- Prompt
- an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:"being a very naughty boy".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope

- Prompt
- an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:"being a very naughty boy".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope

- Prompt
- an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:"being a very naughty boy".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope

- Prompt
- an stylistic cartoon of a man dangling from his neck-rope-noose standing on a small wooden stool in the center facing the crowd and facing the viewer in a medieval town square, the man is wearing tattered rags, there is an executioner man standing beside wearing an executioners hood holding a scroll with a list of crimes *Prominent text on the scroll reads:"being a very naughty boy".*, in the foreground front is an angry mob of townspeople, his arms are behind his back and his wrists are bound with rope
Model description
This can depict a hanging scene using natural language this seems pretty versatile but for realism you may need to adjust the lora strength down as it seems the higher epoch's can reduce the quality of Krea2 Outputs like detail and skin texture im pretty sure this must be due to low quality input images im not fully satisfied with any of my loras so far but will put this up as it is sufficient for now, i will be looking into methods to improve possibly up-scaling the inputs prior to training or maybe captioning the low quality to steer the model away from the unwanted effects.
A not from my testing of Krea2 Unrelated to my Lora the word Prominent can be extremely powerful as Krea2 does not support weighted prompting the same way as SDXL and other models *E.G (Metallic Blue Armor:1.6), instead with Krea2 you woudl instead want He is wearing a prominent Metallic Blue Armor this will put emphasis on this part of the prompt i will need to test more but, if you don know now you know trigger
Trigger words
You should use It waxs trained with one constant H4n4ged But it is not needed use natural language and do not underestimate the power of the word Prominent in Krea2 to trigger the image generation.
Download model
Download them in the Files & versions tab.
- Downloads last month
- 52