Run this model with HF Jobs
Run aimalias/ec4m on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/aimalias/ec4m. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aimalias/ec4m on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use aimalias/ec4m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use aimalias/ec4m 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-Raw", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("aimalias/ec4m") prompt = "A cinematic shot of an EC4M woman wearing bioluminescent armor, standing amidst a floating neon jungle on a distant alien planet." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload README.md with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475---base_model:- krea/Krea-2-Turbo- krea/Krea-2-Rawlibrary_name: diffuserslicense: apache-2.0instance_prompt: EC4M womanwidget: []tags:- text-to-image- diffusers-training- diffusers- lora- krea2- krea2-diffusers- template:sd-lora---<!-- This model card has been generated automatically according to the information the training script had access to. Youshould probably proofread and complete it, then remove this comment. --># Krea 2 DreamBooth LoRA - aimalias/ec4m<Gallery />## Model descriptionThese are aimalias/ec4m DreamBooth LoRA weights, trained on krea/Krea-2-Raw.The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [Krea 2 diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_krea2.md).Krea 2 ships as two checkpoints: **RAW** (the non-distilled base you fine-tune on) and **Turbo** (an 8-step distilled checkpoint for fast, high-quality inference). Train your LoRA on RAW and run it on Turbo — LoRAs trained on RAW express strongly on Turbo.## Trigger wordsYou should use `EC4M woman` to trigger the image generation.## Download model[Download the *.safetensors LoRA](aimalias/ec4m/tree/main) in the Files & versions tab.## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)```py>>> import torch>>> from diffusers import Krea2Pipeline>>> # Load the LoRA onto Krea 2 Turbo (the distilled inference model)>>> pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")>>> pipe.load_lora_weights("aimalias/ec4m")>>> # Turbo recipe: 8 steps, no classifier-free guidance>>> image = pipe("EC4M woman", num_inference_steps=8, guidance_scale=0.0).images[0]>>> image.save("output.png")```For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)## Intended uses & limitations#### How to use```python# TODO: add an example code snippet for running this diffusion pipeline```#### Limitations and bias[TODO: provide examples of latent issues and potential remediations]## Training details[TODO: describe the data used to train the model]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---base_model: krea/Krea-2-Rawtags:- text-to-image- diffusers- lora- krea2- template:sd-loralicense: apache-2.0instance_prompt: "EC4M woman"widget:- text: "A cinematic shot of an EC4M woman wearing bioluminescent armor, standing amidst a floating neon jungle on a distant alien planet."output:url: sample_0.png- text: "A nostalgic 1950s oil painting of an EC4M woman reading a leather-bound book in a cozy, sun-drenched library filled with dust motes."output:url: sample_1.png- text: "A high-fashion editorial photo of an EC4M woman draped in iridescent silk, posing against the stark, brutalist concrete architecture of a futuristic city."output:url: sample_2.png---# Krea 2 LoRA — aimalias/ec4m<Gallery />A DreamBooth-LoRA for **Krea 2**, trained on **Krea 2 RAW** and shown on **Krea 2 Turbo**. The samples below were generated with this LoRA on Turbo (8 steps).## TriggerUse the token `EC4M woman` to invoke the concept.## Samples> *"A cinematic shot of an EC4M woman wearing bioluminescent armor, standing amidst a floating neon jungle on a distant alien planet."*> *"A nostalgic 1950s oil painting of an EC4M woman reading a leather-bound book in a cozy, sun-drenched library filled with dust motes."*> *"A high-fashion editorial photo of an EC4M woman draped in iridescent silk, posing against the stark, brutalist concrete architecture of a futuristic city."*## Use it with diffusers```pyimport torchfrom diffusers import Krea2Pipelinepipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")pipe.load_lora_weights("aimalias/ec4m")image = pipe("A cinematic shot of an EC4M woman wearing bioluminescent armor, standing amidst a floating neon jungle on a distant alien planet.", num_inference_steps=8, guidance_scale=0.0).images[0]image.save("output.png")```
README.md+32-50