/edge-aware-face-autoencoder

👨‍🎨 Edge-aware Face Autoencoder.

Primary LanguageJupyter NotebookOtherNOASSERTION


👨‍🎨 Edge-aware Face Autoencoder

👨‍🎓 Wiktor 👩‍🎓 Aneta


ci-testing Open In Collab Code style: black

💎 Installation with pip

Installation is as simple as running:

pip install git+https://github.com/wiktorlazarski/edge-aware-face-autoencoder.git

🧐 Qualitative results

Original images

alt text


Baseline model without edge-awareness trained on images with 256px resolution, VAE latent dimension equals to 512 and reconstruction loss weight equals to 100 000. Edges' weight was set to 1.

alt text


Edge-aware model with edges' weight set to 3. All other parameters were the same as in the baseline model.

alt text


Edge-aware model with edges' weight set to 10. All other parameters were the same as in the baseline model.

alt text


⚙️ Setup for development with pip

# Clone repo
git clone https://github.com/wiktorlazarski/edge-aware-face-autoencoder.git

# Go to repo directory
cd edge-aware-face-autoencoder

# (Optional) Create virtual environment
python -m venv venv
source ./venv/bin/activate

# Install project in editable mode
pip install -e .[dev]

# (Optional but recommended) Install pre-commit hooks to preserve code format consistency
pre-commit install

🐍 Setup for development with conda

# Clone repo
git clone https://github.com/wiktorlazarski/edge-aware-face-autoencoder.git

# Go to repo directory
cd edge-aware-face-autoencoder

# Create and activate conda environment
conda env create -f ./conda_env.yml
conda activate face_autoencoder

# (Optional but recommended) Install pre-commit hooks to preserve code format consistency
pre-commit install

🤗 Enjoy the model !