Add sample images
Browse files- .gitattributes +1 -0
- app.py +15 -1
- samples/celeba-hq.jpg +3 -0
- samples/ffhq.jpg +3 -0
- samples/lsun-church.jpg +3 -0
.gitattributes
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
1 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
2 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
3 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
4 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -24,7 +24,21 @@ from models.generator import Generator
|
|
24 |
REPO_URL = 'https://github.com/microsoft/StyleSwin'
|
25 |
TITLE = 'microsoft/StyleSwin'
|
26 |
DESCRIPTION = f'A demo for {REPO_URL}'
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
TOKEN = os.environ['TOKEN']
|
30 |
|
|
|
24 |
REPO_URL = 'https://github.com/microsoft/StyleSwin'
|
25 |
TITLE = 'microsoft/StyleSwin'
|
26 |
DESCRIPTION = f'A demo for {REPO_URL}'
|
27 |
+
SAMPLE_IMAGE_DIR = 'https://huggingface.co/spaces/hysts/StyleSwin/resolve/main/samples'
|
28 |
+
ARTICLE = f'''## Generated images
|
29 |
+
### CelebA-HQ
|
30 |
+
- size: 1024x1024
|
31 |
+
- seed: 0-99
|
32 |
+
![CelebA-HQ samples]({SAMPLE_IMAGE_DIR}/celeba-hq.jpg)
|
33 |
+
### FFHQ
|
34 |
+
- size: 1024x1024
|
35 |
+
- seed: 0-99
|
36 |
+
![FFHQ samples]({SAMPLE_IMAGE_DIR}/ffhq.jpg)
|
37 |
+
### LSUN Church
|
38 |
+
- size: 256x256
|
39 |
+
- seed: 0-99
|
40 |
+
![LSUN Church samples]({SAMPLE_IMAGE_DIR}/lsun-church.jpg)
|
41 |
+
'''
|
42 |
|
43 |
TOKEN = os.environ['TOKEN']
|
44 |
|
samples/celeba-hq.jpg
ADDED
Git LFS Details
|
samples/ffhq.jpg
ADDED
Git LFS Details
|
samples/lsun-church.jpg
ADDED
Git LFS Details
|