update example

This commit is contained in:
LouieStark
2024-11-05 15:49:00 +08:00
parent 53357f95d6
commit 3f267aaea2
2 changed files with 29 additions and 1 deletions
+28
View File
@@ -14,6 +14,34 @@ def download_image(image, local_path=None):
def get_examples(cache_dir):
print('Downloading Examples ...')
examples = [
[
'Facial Editing',
download_image(
'https://github.com/ali-vilab/ace-page/blob/main/assets/examples/e33edc106953.png?raw=true',
os.path.join(cache_dir, 'examples/e33edc106953.png')), None,
None, '{image} let the man smile', 6666
],
[
'Facial Editing',
download_image(
'https://github.com/ali-vilab/ace-page/blob/main/assets/examples/5d2bcc91a3e9.png?raw=true',
os.path.join(cache_dir, 'examples/5d2bcc91a3e9.png')), None,
None, 'let the man in {image} wear sunglasses', 9999
],
[
'Facial Editing',
download_image(
'https://github.com/ali-vilab/ace-page/blob/main/assets/examples/3a52eac708bd.png?raw=true',
os.path.join(cache_dir, 'examples/3a52eac708bd.png')), None,
None, '{image} red hair', 9999
],
[
'Facial Editing',
download_image(
'https://github.com/ali-vilab/ace-page/blob/main/assets/examples/3f4dc464a0ea.png?raw=true',
os.path.join(cache_dir, 'examples/3f4dc464a0ea.png')), None,
None, '{image} let the man serious', 99999
],
[
'Controllable Generation',
download_image(