Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAIR: Dynamic-Architecture Image Reconstructor

DAIR is an image autoencoder framework designed for dynamic architectural experimentation. Unlike static models, the DAIR decoder can adapt its structure—switching between different upsampling methods, activation functions, and normalization layers either randomly or via a JSON specification.

Key Features

  • Dynamic Decoder Architecture: The decoder utilizes SubBlocks that can shuffle and select operations (Conv, Act, Norm) on the fly.
  • Weighted Convolutional Pooling: Features a custom WeightedConvPool3 layer that dynamically weights multiple convolution outputs based on the input features.
  • Flexible Upsampling: Supports multiple upsampling modes: Bilinear, Nearest, Bicubic, and PixelShuffle.
  • Architecture Export: Capability to save and load specific architecture configurations via JSON.

Usage

1. Training:

python train.py --train_dir /path/to/your/dataset --batch_size 4 --img_loss both

2. Download Checkpoint

Before running inference, you can download the pre-trained model checkpoint from Google Drive and place it directly into the root directory of this project.

3. Inference & Testing

We provide a test_inference.py script:

# Ensure you have a 'test.jpg' in the root directory
python test_inference.py

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages