Giter VIP home page Giter VIP logo

vae-training-nasnet's Introduction

VAE Training with NASNet

Open In Colab

This repository contains a script for training a Variational Autoencoder (VAE) using the NASNetLarge neural network architecture. The script is designed for flexibility and customization, making it suitable for various image generation tasks.

Will be in development for a unchosen time.

Authors

Usage

  1. Clone this repository to google colab or your preferred environment.
  2. Ensure you have the required dependencies installed by following the installation instructions.
  3. Customize the script to meet your specific project requirements, such as input image dimensions, dataset paths, and model hyperparameters.
  4. Run the script to train your VAE model.

Installation

You can install the required dependencies using the following commands:

pip install safetensors
pip install matplotlib
pip install tensorflow
pip install numpy

NASNet Model

This script uses the NASNetLarge model for feature extraction. You can choose to load weights from either ImageNet or provide custom weights.

Model Configuration and Compilation

Configure the VAE model with various hyperparameters, including latent space size, filter sizes, and regularization parameters. The model is compiled using the Adam optimizer.

Dataset Configuration

You should specify the path to your training and validation data directories. Data augmentation options such as rotation, shift, shear, zoom, and flip are available for data preprocessing.

Training

The script supports training for a specified number of epochs with a learning rate schedule. You can choose to save model checkpoints at the end of each epoch. Training progress is recorded, including loss values and learning rate adjustments.

Testing

After training, you can use the trained model to generate images by providing an input image path. The generated image will be displayed alongside the original image for visual comparison.
Feel free to customize and extend this script to suit your specific VAE training needs.

vae-training-nasnet's People

Contributors

oblivisheee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.