hysts HF staff commited on
Commit
80f1248
1 Parent(s): 6815db7

Add sample images

Browse files
.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
@@ -23,7 +23,28 @@ DESCRIPTION = f'''This is a demo for {ORIGINAL_REPO_URL}.
23
  For class-conditional models, you can specify the class index.
24
  Index-to-label dictionaries for ImageNet and CIFAR-10 can be found [here](https://raw.githubusercontent.com/autonomousvision/stylegan_xl/main/misc/imagenet_idx2labels.txt) and [here](https://www.cs.toronto.edu/~kriz/cifar.html), respectively.
25
  '''
26
- ARTICLE = None
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
  TOKEN = os.environ['TOKEN']
29
 
@@ -128,12 +149,10 @@ def main():
128
  gr.Interface(
129
  func,
130
  [
131
- gr.inputs.Radio(
132
- model_names,
133
- type='value',
134
- default='imagenet128',
135
- label='Model',
136
- ),
137
  gr.inputs.Number(default=284, label='Class index'),
138
  gr.inputs.Number(default=0, label='Seed'),
139
  gr.inputs.Slider(
23
  For class-conditional models, you can specify the class index.
24
  Index-to-label dictionaries for ImageNet and CIFAR-10 can be found [here](https://raw.githubusercontent.com/autonomousvision/stylegan_xl/main/misc/imagenet_idx2labels.txt) and [here](https://www.cs.toronto.edu/~kriz/cifar.html), respectively.
25
  '''
26
+ SAMPLE_IMAGE_DIR = 'https://huggingface.co/spaces/hysts/StyleGAN-XL/resolve/main/samples'
27
+ ARTICLE = f'''## Generated images
28
+ - truncation: 0.7
29
+ ### ImageNet
30
+ - size: 128x128
31
+ - class index: 0-999
32
+ - seed: 0
33
+ ![ImageNet samples]({SAMPLE_IMAGE_DIR}/imagenet.jpg)
34
+ ### CIFAR-10
35
+ - size: 32x32
36
+ - class index: 0-9
37
+ - seed: 0-9
38
+ ![CIFAR-10 samples]({SAMPLE_IMAGE_DIR}/cifar10.jpg)
39
+ ### FFHQ
40
+ - size: 256x256
41
+ - seed: 0-99
42
+ ![HHFQ samples]({SAMPLE_IMAGE_DIR}/ffhq.jpg)
43
+ ### Pokemon
44
+ - size: 256x256
45
+ - seed: 0-99
46
+ ![Pokemon samples]({SAMPLE_IMAGE_DIR}/pokemon.jpg)
47
+ '''
48
 
49
  TOKEN = os.environ['TOKEN']
50
 
149
  gr.Interface(
150
  func,
151
  [
152
+ gr.inputs.Radio(model_names,
153
+ type='value',
154
+ default='imagenet128',
155
+ label='Model'),
 
 
156
  gr.inputs.Number(default=284, label='Class index'),
157
  gr.inputs.Number(default=0, label='Seed'),
158
  gr.inputs.Slider(
samples/cifar10.jpg ADDED

Git LFS Details

  • SHA256: 206990e8e0b5e050bc66b83bff192c356324e0f29ae2e594723e9567b95de354
  • Pointer size: 130 Bytes
  • Size of remote file: 63.8 kB
samples/ffhq.jpg ADDED

Git LFS Details

  • SHA256: bd1dcf00f6649ac3a448c3d52552bdfe4279c4da985d24e714bb08b09f0a945c
  • Pointer size: 132 Bytes
  • Size of remote file: 2.44 MB
samples/imagenet.jpg ADDED

Git LFS Details

  • SHA256: 236498cb65b1e61ace4b7470e59775d46928f0ca88a0d2a411415da5161af82c
  • Pointer size: 133 Bytes
  • Size of remote file: 10.3 MB
samples/pokemon.jpg ADDED

Git LFS Details

  • SHA256: c0a807e9b10ceb11e14c25356db55cf1ac3701b5e322db4dec0fa3f3f48859a6
  • Pointer size: 132 Bytes
  • Size of remote file: 2.13 MB