mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-25 10:48:11 +00:00
fix bugs
This commit is contained in:
@@ -47,6 +47,5 @@ class Annotator:
|
|||||||
detect_resolution = self.detect_resolution if self.detect_resolution is not None else min(width, height)
|
detect_resolution = self.detect_resolution if self.detect_resolution is not None else min(width, height)
|
||||||
image = self.processor(image, detect_resolution=detect_resolution, image_resolution=min(width, height), **kwargs)
|
image = self.processor(image, detect_resolution=detect_resolution, image_resolution=min(width, height), **kwargs)
|
||||||
image = image.resize((width, height))
|
image = image.resize((width, height))
|
||||||
image.save("/mnt/zhongjie/DiffSynth-Studio-kolors/DiffSynth-Studio/input.jpg")
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,12 @@ Image Examples of fine-tuned LoRA. The prompt is "一只小狗蹦蹦跳跳,周
|
|||||||
|Without LoRA||||
|
|Without LoRA||||
|
||||||
|With LoRA||||
|
|With LoRA||||
|
||||||
|
|
||||||
|
## Install additional packages
|
||||||
|
|
||||||
|
```
|
||||||
|
pip install peft lightning
|
||||||
|
```
|
||||||
|
|
||||||
## Prepare your dataset
|
## Prepare your dataset
|
||||||
|
|
||||||
We provide an example dataset [here](https://modelscope.cn/datasets/buptwq/lora-stable-diffusion-finetune/files). You need to manage the training images as follows:
|
We provide an example dataset [here](https://modelscope.cn/datasets/buptwq/lora-stable-diffusion-finetune/files). You need to manage the training images as follows:
|
||||||
|
|||||||
Reference in New Issue
Block a user