echen01 commited on
Commit
f903e88
1 Parent(s): 33dd132

update readme

Browse files
README.md CHANGED
@@ -9,6 +9,41 @@ app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
 
 
 
 
 
12
 
13
- Paper: https://arxiv.org/abs/2210.06642
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  license: mit
11
  ---
12
+ # What's in a Decade? Transforming Faces Through Time
13
+ ![Teaser image](imgs/teaser.png)
14
+ **What's in a Decade? Transforming Faces Through Time** \
15
+ Eric Ming Chen, Jin Sun, Apoorv Khandelwal, Dani Lischinski, Noah Snavely, Hadar Averbuch-Elor \
16
+ https://arxiv.org/abs/2210.06642
17
 
18
+ Abstract: *How can one visually characterize people in a decade? In this work, we assemble the Faces Through Time dataset, which contains over a thousand portrait images from each decade, spanning the 1880s to the present day. Using our new dataset, we present a framework for resynthesizing portrait images across time, imagining how a portrait taken during a particular decade might have looked like, had it been taken in other decades. Our framework optimizes a family of per-decade generators that reveal subtle changes that differentiate decades—such as different hairstyles or makeup—while maintaining the identity of the input portrait. Experiments show that our method is more effective in resynthesizing portraits across time compared to state-of-the-art image-to-image translation methods, as well as attribute-based and language-guided portrait editing models.*
19
+
20
+
21
+ ## Demo
22
+ Welcome to our demo for Faces Through Time!
23
+
24
+ Unfortunately, because the Hugging Face demo is CPU only, it takes over 20 minutes. We suggest running it locally, following the instructions below. The results should take 1 minute per image.
25
+
26
+
27
+ ### Running the Demo Locally
28
+ First clone the repo with git lfs. This will also download all required checkpoints. The total repo size is about 10GB.
29
+ ```
30
+ git lfs install
31
+ git clone https://huggingface.co/spaces/emc348/faces-through-time
32
+ ```
33
+
34
+ To run with cuda, change line 3 in `configs/global_config.py` to
35
+ ```python
36
+ device = "cuda"
37
+ ```
38
+
39
+ To reduce artifacts in the generated images, we suggest turning on the background mask during GAN inversion. This is turned off by default because of Hugging Face speed limitations. In `configs/hyperparameters.py`, change line 15 to
40
+ ```python
41
+ use_mask = True
42
+ ```
43
+
44
+
45
+ To start the demo, run
46
+ ```
47
+ gradio app.py
48
+ ```
49
+ The demo will start at `http://localhost:7860` on your server. To visualize results, upload an image of a person, and select the input decade. The script will automatically crop and align the input image.
flagged/1890s/tmphowwncle.png DELETED

Git LFS Details

  • SHA256: ca8a32d7cc38195cc6bb0a68552993738d601a9388a2080e1001846dd2063f6f
  • Pointer size: 130 Bytes
  • Size of remote file: 94.1 kB
flagged/1900s/tmpiyqo8vid.png DELETED

Git LFS Details

  • SHA256: e5999133f20362fc1773c28069e60ae7ea0b9eac0ab6ff7e90422fc8b9e28f75
  • Pointer size: 131 Bytes
  • Size of remote file: 102 kB
flagged/1910s/tmplsvkbwmm.png DELETED

Git LFS Details

  • SHA256: f8714b7ed0cea3ef837ddd02dcd462dcddbef3b212dad29bf494d6ea64125d74
  • Pointer size: 130 Bytes
  • Size of remote file: 85.7 kB
flagged/1920s/tmpm88oq3m5.png DELETED

Git LFS Details

  • SHA256: a74da6dd9e66dd8467a90509001c1b2547f96faa1fae26eae80acabf57d1055c
  • Pointer size: 130 Bytes
  • Size of remote file: 95.8 kB
flagged/1930s/tmp1xg1cf_k.png DELETED

Git LFS Details

  • SHA256: 003e137999b2172edc03b3908c22881194842aa1c54d86059b63b142ce95161d
  • Pointer size: 130 Bytes
  • Size of remote file: 96.2 kB
flagged/1940s/tmpyxtlostd.png DELETED

Git LFS Details

  • SHA256: d73414199aaf1eb2e7b8cad5b175dde899954754150f5b67338723830852b7bc
  • Pointer size: 130 Bytes
  • Size of remote file: 90.2 kB
flagged/1950s/tmp00ekzg14.png DELETED

Git LFS Details

  • SHA256: bccbbe1683c1403dba761417691f4507f95f13a46d2ee36c4421605454a82d4f
  • Pointer size: 130 Bytes
  • Size of remote file: 89.1 kB
flagged/1960s/tmp0ptji34n.png DELETED

Git LFS Details

  • SHA256: 5334bdbc823e859a79fd81bf4c12c93af2752ef665f2beea8ea5d8adf362a3ee
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
flagged/1970s/tmppty6lfdc.png DELETED

Git LFS Details

  • SHA256: 946fefa001dd05e67a738094b13a1134abaf214023c3e792dcdc09053bcd9af1
  • Pointer size: 130 Bytes
  • Size of remote file: 93.3 kB
flagged/1980s/tmpo1znpbho.png DELETED

Git LFS Details

  • SHA256: 509a761d7b32d4931e6d6eeeec2bd29ef5e2d9a63e8805e0e75e267505722cfe
  • Pointer size: 130 Bytes
  • Size of remote file: 98.2 kB
flagged/1990s/tmpkoptsgzw.png DELETED

Git LFS Details

  • SHA256: 828bd9b28a0c92b4880567aed2dd4934c148776826840b6d5a5f19a846248a5e
  • Pointer size: 130 Bytes
  • Size of remote file: 85.7 kB
flagged/2000s/tmpn85t4qg9.png DELETED

Git LFS Details

  • SHA256: 0c7b2d14d835c80a51281858ea2752459173b366ec856262feec6196e3148110
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
flagged/2010s/tmpxwhqu3bi.png DELETED

Git LFS Details

  • SHA256: 78879d72514a82c14ca4f189ce61c30394c8054eebabb7525cc7c114f5a5b581
  • Pointer size: 130 Bytes
  • Size of remote file: 99.5 kB
flagged/Cropped Input/tmpewip1qud.png DELETED

Git LFS Details

  • SHA256: e45fca429a0605b5b8686d5a5395a113e727deceda0f8647d46fe53120e90431
  • Pointer size: 130 Bytes
  • Size of remote file: 67.6 kB
flagged/Input Image/tmpqdqusbe1.png DELETED

Git LFS Details

  • SHA256: e99509f3093eaa1f9b15a39ee91b8db5c5bedb713838820f416b0edb58f04645
  • Pointer size: 131 Bytes
  • Size of remote file: 707 kB
flagged/log.csv DELETED
@@ -1,2 +0,0 @@
1
- Input Image,Input Decade,Cropped Input,1880s,1890s,1900s,1910s,1920s,1930s,1940s,1950s,1960s,1970s,1980s,1990s,2000s,2010s,flag,username,timestamp
2
- /share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/Input Image/tmpqdqusbe1.png,1920s,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/Cropped Input/tmpewip1qud.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1880s/tmpqihfju9s.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1890s/tmphowwncle.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1900s/tmpiyqo8vid.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1910s/tmplsvkbwmm.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1920s/tmpm88oq3m5.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1930s/tmp1xg1cf_k.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1940s/tmpyxtlostd.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1950s/tmp00ekzg14.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1960s/tmp0ptji34n.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1970s/tmppty6lfdc.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1980s/tmpo1znpbho.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/1990s/tmpkoptsgzw.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/2000s/tmpn85t4qg9.png,/share/phoenix/nfs04/S7/emc348/faces-through-time/flagged/2010s/tmpxwhqu3bi.png,,,2023-06-07 16:44:52.259412
 
 
 
flagged/1880s/tmpqihfju9s.png → imgs/teaser.png RENAMED
File without changes