GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ry-lu/pytorch-face-reaging-network: PyTorch Lightning implementation of Disney's face re-aging network (FRAN) paper.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
data-demo
data-demo
 
 
datasets
datasets
 
 
example-images
example-images
 
 
models
models
 
 
training
training
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
fran_colab_notebook.ipynb
fran_colab_notebook.ipynb
 
 
requirements.txt
requirements.txt
 
 
train.py
train.py
 
 

Repository files navigation

PyTorch Face Re-aging Network (FRAN)

Image Alt Text Image Alt Text

An unofficial PyTorch implementation of Disney's face re-aging network (FRAN) paper.

Paper Link: link

Dataset Link (collected according to the paper): link

Setup

Python 3.12.2

> pip install -r requirements.txt

For full training, download all 2000 subjects from the dataset link.

Training

See Colab Notebook or train a new model by

> python train.py -h
usage: train.py [-h] [--data_dir DATA_DIR]

Train FRAN model.

options:
  -h, --help            show this help message and exit
  --data_dir DATA_DIR, -C DATA_DIR
                        directory for data

> python train.py

Using 16bit Automatic Mixed Precision (AMP)
GPU available: True (mps), used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs

  | Name          | Type                  | Params
--------------------------------------------------------
0 | generator     | Generator             | 31.4 M
1 | discriminator | PatchGANDiscriminator | 1.6 M 
--------------------------------------------------------
32.9 M    Trainable params
0         Non-trainable params
32.9 M    Total params
131.800   Total estimated model params size (MB)
Epoch 0:   0%|                                                                       | 0/228 [00:00<?, ?it/s]

Showcase

Applying the model + naive crop and masking. Model was trained on a single V100 for 6 hours in Google Colab.

Hugging Face Spaces

Notes

Why does the image turn grainy/pixelated sometimes?

Model encountered an unfamilar face. More diverse data may help resolve this problem.

Model is noticably worse with turning old people to young.

About

PyTorch Lightning implementation of Disney's face re-aging network (FRAN) paper.

Topics

face-agingface-aging-ganpytorch-lightningunet-pytorch

Resources

Readme
MIT license
Activity

Stars

22 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.