Instructions to use gperdrizet/compression_autoencoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use gperdrizet/compression_autoencoder with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://gperdrizet/compression_autoencoder") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,15 +11,15 @@ A convolutional autoencoder trained to compress 256×256 RGB images into a compa
|
|
| 11 |
This model learns to compress high-quality images by encoding them into a compact latent space, then reconstructing them with minimal quality loss. The encoder reduces a 196,608-value image (256×256×3) to just 1024 numbers, while the decoder reconstructs the original image from this compressed representation.
|
| 12 |
|
| 13 |
**Architecture:**
|
| 14 |
-
- Encoder: Convolutional layers with downsampling (256×256×3 →
|
| 15 |
-
- Decoder: Transposed convolutional layers with upsampling (
|
| 16 |
- Activation: LeakyReLU and Sigmoid
|
| 17 |
- Normalization: Batch normalization
|
| 18 |
|
| 19 |
**Performance:**
|
| 20 |
- Compression ratio: 96×
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
|
| 24 |
## Intended use
|
| 25 |
|
|
@@ -50,8 +50,8 @@ All images resized to 256×256 pixels using Lanczos resampling.
|
|
| 50 |
- Train/validation split: 90/10
|
| 51 |
|
| 52 |
**Callbacks:**
|
| 53 |
-
- Early stopping (patience=
|
| 54 |
-
- Learning rate reduction (factor=0.5, patience=
|
| 55 |
- Model checkpoint (best validation loss)
|
| 56 |
|
| 57 |
**Hardware:**
|
|
|
|
| 11 |
This model learns to compress high-quality images by encoding them into a compact latent space, then reconstructing them with minimal quality loss. The encoder reduces a 196,608-value image (256×256×3) to just 1024 numbers, while the decoder reconstructs the original image from this compressed representation.
|
| 12 |
|
| 13 |
**Architecture:**
|
| 14 |
+
- Encoder: Convolutional layers with downsampling (256×256×3 → 2048)
|
| 15 |
+
- Decoder: Transposed convolutional layers with upsampling (2048 → 256×256×3)
|
| 16 |
- Activation: LeakyReLU and Sigmoid
|
| 17 |
- Normalization: Batch normalization
|
| 18 |
|
| 19 |
**Performance:**
|
| 20 |
- Compression ratio: 96×
|
| 21 |
+
- PSNR: ~22 dB dB
|
| 22 |
+
- SSIM: >0.52
|
| 23 |
|
| 24 |
## Intended use
|
| 25 |
|
|
|
|
| 50 |
- Train/validation split: 90/10
|
| 51 |
|
| 52 |
**Callbacks:**
|
| 53 |
+
- Early stopping (patience=10, monitoring validation loss)
|
| 54 |
+
- Learning rate reduction (factor=0.5, patience=5)
|
| 55 |
- Model checkpoint (best validation loss)
|
| 56 |
|
| 57 |
**Hardware:**
|