Skip to content

PeterChauYEG/animeGM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animeML

The goal of this project is to stylize an photograph as anime.

Methodology

Each notebook progressively enhances the complexity of the model. Some have weight checkpoints which allow for saving and loading of model weights. Some have logfiles which allow for use of tensorboard for analysis. Some use GPUs.

Usage

  1. Run the notebook:
$ source activate ai
$ jupyter lab
  1. Ensure GPUs and CPUs are configured correctly.

  2. Configure Data paths, and ensure images are in the correct directory.

  3. Configure hyper parameters

  4. Monitor with tensorboard:

$ tensorboard --logdir=log

NOTE: You may need to configure tensorboard's main.py to use the CPU.

import os

os.environ["CUDA_VISIBLE_DEVICES"]="1"
  1. Monitor your GPU usage:
$ nvidia-smi -l 2
  1. Monitor your CPU and memory usage with:
$ htop
  1. Convert model to layers format for tensorflowjs usage with:
tensorflowjs_converter --input_format keras models/model.hdf5 layersModel
  1. Move the layersModel folder into the web app public dir webapp/public with:
cp -R layersModel webapp/public/layersModel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages