Upload folder using huggingface_hub
Browse files
artists/Claude_Monet/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: mit
|
| 4 |
+
base_model: runwayml/stable-diffusion-v1-5
|
| 5 |
+
tags:
|
| 6 |
+
- stable-diffusion
|
| 7 |
+
- text-to-image
|
| 8 |
+
- diffusers
|
| 9 |
+
- lora
|
| 10 |
+
- artist
|
| 11 |
+
- art
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# LoRA for Artist: Claude Monet
|
| 15 |
+
|
| 16 |
+
A LoRA fine-tuned on the work of **Claude Monet**. Use the trigger phrase `by claude monet` in your prompts to evoke their iconic style.
|
| 17 |
+
|
| 18 |
+
This LoRA was trained on the [WikiArt dataset](https://www.kaggle.com/datasets/steubk/wikiart) for 1000 steps.
|
| 19 |
+
|
| 20 |
+
## How to Use
|
| 21 |
+
|
| 22 |
+
This LoRA is designed to be used with the `diffusers` library.
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
import torch
|
| 26 |
+
from diffusers import StableDiffusionPipeline
|
| 27 |
+
from peft import PeftModel
|
| 28 |
+
|
| 29 |
+
# --- 1. Load the base model ---
|
| 30 |
+
base_model_id = "runwayml/stable-diffusion-v1-5"
|
| 31 |
+
pipe = StableDiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16).to("cuda")
|
| 32 |
+
|
| 33 |
+
# --- 2. Load the LoRA adapter ---
|
| 34 |
+
repo_id = "aanchal77/Final-One"
|
| 35 |
+
lora_path_in_repo = "artists/Claude_Monet"
|
| 36 |
+
pipe.unet = PeftModel.from_pretrained(pipe.unet, repo_id, subfolder=lora_path_in_repo)
|
| 37 |
+
|
| 38 |
+
# --- 3. Generate an image ---
|
| 39 |
+
prompt = f"A futuristic cityscape by claude monet"
|
| 40 |
+
image = pipe(prompt, num_inference_steps=20, guidance_scale=7.5).images[0]
|
| 41 |
+
image.save("generated_image.png")
|
artists/Claude_Monet/adapter_config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "UNet2DConditionModel",
|
| 5 |
+
"parent_library": "diffusers.models.unets.unet_2d_condition"
|
| 6 |
+
},
|
| 7 |
+
"base_model_name_or_path": "runwayml/stable-diffusion-v1-5",
|
| 8 |
+
"bias": "none",
|
| 9 |
+
"corda_config": null,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 32,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"qalora_group_size": 16,
|
| 27 |
+
"r": 8,
|
| 28 |
+
"rank_pattern": {},
|
| 29 |
+
"revision": null,
|
| 30 |
+
"target_modules": [
|
| 31 |
+
"to_k",
|
| 32 |
+
"to_v",
|
| 33 |
+
"to_out.0",
|
| 34 |
+
"to_q"
|
| 35 |
+
],
|
| 36 |
+
"target_parameters": null,
|
| 37 |
+
"task_type": null,
|
| 38 |
+
"trainable_token_indices": null,
|
| 39 |
+
"use_dora": false,
|
| 40 |
+
"use_qalora": false,
|
| 41 |
+
"use_rslora": false
|
| 42 |
+
}
|
artists/Claude_Monet/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55a0ca392040a16dd61cc0b2c2d709257ba01c55f8afafde751b51c631278c5f
|
| 3 |
+
size 6417552
|