This commit is contained in:
LouieStark
2024-04-01 11:46:03 +08:00
parent e00c23d09a
commit 565c7957d8
41 changed files with 26 additions and 21 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

+1 -1
View File
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
from . import impls
# Copyright (c) Alibaba, Inc. and its affiliates.
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) Alibaba, Inc. and its affiliates.
from .classifier_dataset import ImageClassifyExampleDataset
-2
View File
@@ -1,2 +0,0 @@
# -*- coding: utf-8 -*-
from . import dataset
+17 -17
View File
@@ -169,10 +169,10 @@ python scepter/tools/run_inference.py --cfg scepter/methods/scedit/ctr/sd21_768_
```
### Customize Modules
Refer to `example`, build your modules in `example/impls`.
Refer to `example`, build the modules of your task in `example/{task}`.
```python
cd example
python run.py --cfg example.yaml
cd example/classifier
python run.py --cfg classifier.yaml
```
@@ -199,7 +199,7 @@ Therefore, subsequent startups will become much faster (about one minute) as dow
* LAR-Gen: we release `zoom-out`, `virtual try on`, `inpainting(text guided)`, `inpainting(text + reference image guided)` image editing capabilities.
Please note that the **Data Preprocess** button must be clicked before clicking the **Generate** button.
<p align="center">
<img src="./asset/images/largen.gif">
<img src="https://raw.githubusercontent.com/ali-vilab/largen-page/main/public/images/largen.gif">
</p>
### Modelscope Studio
@@ -208,7 +208,7 @@ We deploy a work studio on Modelscope that includes only the inference tab, plea
## 🖼️ Gallery
### LAR-Gen: Zoom-Out
### LAR-Gen: Zoom Out
<table>
<tr>
<td><strong>Origin Image</strong><br>Prompt: a temple on fire</td>
@@ -218,15 +218,15 @@ We deploy a work studio on Modelscope that includes only the inference tab, plea
<td><strong>Zoom-Out</strong><br>CenterAround:0.75</td>
</tr>
<tr>
<td><img src="asset/images/zoom_out/ex1_scene_im.jpeg" width="240"></td>
<td><img src="asset/images/zoom_out/ex1_zoom_out1.jpeg" width="240"></td>
<td><img src="./asset/images/zoom_out/ex1_zoom_out2.jpeg" width="240"></td>
<td><img src="./asset/images/zoom_out/ex1_zoom_out3.jpeg" width="240"></td>
<td><img src="./asset/images/zoom_out/ex1_zoom_out4.jpeg" width="240"></td>
<td><img src="asset/images/zoom_out/ex1_scene_im.jpg" width="240"></td>
<td><img src="asset/images/zoom_out/ex1_zoom_out1.jpg" width="240"></td>
<td><img src="./asset/images/zoom_out/ex1_zoom_out2.jpg" width="240"></td>
<td><img src="./asset/images/zoom_out/ex1_zoom_out3.jpg" width="240"></td>
<td><img src="./asset/images/zoom_out/ex1_zoom_out4.jpg" width="240"></td>
</tr>
</table>
### LAR-Gen: Virtual-Try-on
### LAR-Gen: Virtual Try-on
<table>
<tr>
<td><strong>Model Image</strong></td>
@@ -240,11 +240,11 @@ We deploy a work studio on Modelscope that includes only the inference tab, plea
<td><img src="asset/images/virtual_try_on/ex2_scene_mask.jpg" width="240"></td>
<td><img src="asset/images/virtual_try_on/tshirt.jpg" width="240"></td>
<td><img src="asset/images/virtual_try_on/ex2_subject_mask.jpg" width="240"></td>
<td><img src="asset/images/virtual_try_on/try_on_out.jpeg" width="240"></td>
<td><img src="asset/images/virtual_try_on/try_on_out.jpg" width="240"></td>
</tr>
</table>
### LAR-Gen: Inpainting(Text-guided)
### LAR-Gen: Inpainting (Text guided)
<table>
<tr>
<td><strong>Origin Image</strong><br>Prompt: a blue and white porcelain</td>
@@ -256,13 +256,13 @@ We deploy a work studio on Modelscope that includes only the inference tab, plea
<tr>
<td><img src="asset/images/inpainting_text/ex3_scene_im.jpg" width="240"></td>
<td><img src="asset/images/inpainting_text/ex3_scene_mask.jpg" width="240"></td>
<td><img src="asset/images/inpainting_text/inpainting_text.jpeg" width="240"></td>
<td><img src="asset/images/inpainting_text/inpainting_text.jpg" width="240"></td>
<td><img src="asset/images/inpainting_text/ex3_scene_mask2.jpg" width="240"></td>
<td><img src="asset/images/inpainting_text/inpainting_text2.jpeg" width="240"></td>
<td><img src="asset/images/inpainting_text/inpainting_text2.jpg" width="240"></td>
</tr>
</table>
### LAR-Gen: Inpainting(Text + Reference Image Guided)
### LAR-Gen: Inpainting (Text and Subject guided)
<table>
<tr>
<td><strong>Origin Image</strong><br>Prompt: a dog wearing sunglasses</td>
@@ -276,7 +276,7 @@ We deploy a work studio on Modelscope that includes only the inference tab, plea
<td><img src="asset/images/inpainting_text_ref/ex4_scene_mask.jpg" width="240"></td>
<td><img src="asset/images/inpainting_text_ref/ex4_subject_im.jpg" width="240"></td>
<td><img src="asset/images/inpainting_text_ref/ex4_subject_mask.jpg" width="240"></td>
<td><img src="asset/images/inpainting_text_ref/inpainting_text_ref.jpeg" width="240"></td>
<td><img src="asset/images/inpainting_text_ref/inpainting_text_ref.jpg" width="240"></td>
</tr>
</table>
+1 -1
View File
@@ -47,7 +47,7 @@ class ProbeDataHook(Hook):
if we.rank == 0:
save_folder = os.path.join(
solver.work_dir,
f'{solver.mode}_probe/{self.save_probe_prefix}-{solver.total_iter}'
f'{solver.mode}_probe/{self.save_name_prefix}-{solver.total_iter}'
)
ret_data = {}
for k, v in probe_dict.items():
+2
View File
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# Copyright (c) Alibaba, Inc. and its affiliates.
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# Copyright (c) Alibaba, Inc. and its affiliates.
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# Copyright (c) Alibaba, Inc. and its affiliates.