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 - lalith0087/Face-aging-: Fast-AgingGAN: lightweight face-aging GAN in PyTorch Lightning, trained on CACD and UTKFace, with a pretrained generator and an inference script

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
configs
configs
 
 
preprocessing
preprocessing
 
 
pretrained_model
pretrained_model
 
 
sample_images
sample_images
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
dataset.py
dataset.py
 
 
gan_module.py
gan_module.py
 
 
infer.py
infer.py
 
 
main.py
main.py
 
 
models.py
models.py
 
 
requirements.txt
requirements.txt
 
 
timing.py
timing.py
 
 

Repository files navigation

Fast-AgingGAN

A lightweight GAN for face aging. Given a face photo, the model generates an aged version of the same face.

Setup

pip install -r requirements.txt

The pretrained generator weights are included at pretrained_model/state_dict.pth.

Inference

Put face images (.jpg / .png) in a folder and run:

python infer.py --image_dir sample_images

This loads the generator, runs each image through it, and saves a before/after grid to mygraph.png.

Training

Configure dataset paths and hyperparameters in configs/aging_gan.yaml, then run:

python main.py

Training uses PyTorch Lightning; see gan_module.py for the GAN training loop and models.py for the generator/discriminator architectures.

Project layout

  • infer.py — run inference on a folder of images
  • main.py — train the GAN
  • gan_module.py — Lightning module with the training/optimization logic
  • models.py — generator and discriminator architectures
  • dataset.py — dataset loading
  • preprocessing/ — scripts to preprocess the CACD and UTKFace datasets
  • pretrained_model/ — pretrained generator weights

About

Fast-AgingGAN: lightweight face-aging GAN in PyTorch Lightning, trained on CACD and UTKFace, with a pretrained generator and an inference script

Topics

cacdcomputer-visiondeep-learningface-agingganpytorchpytorch-lightningutkface

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

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.