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
|
@@ -17,7 +17,7 @@ This model learns to compress high-quality images by encoding them into a compac
|
|
| 17 |
- Normalization: Batch normalization
|
| 18 |
|
| 19 |
**Performance:**
|
| 20 |
-
- Compression ratio:
|
| 21 |
- Target PSNR: >30 dB
|
| 22 |
- Target SSIM: >0.90
|
| 23 |
|
|
@@ -33,10 +33,10 @@ This model is designed for **educational purposes** to demonstrate how autoencod
|
|
| 33 |
|
| 34 |
## Training data
|
| 35 |
|
| 36 |
-
Trained on [DF2K_OST](https://huggingface.co/datasets/gperdrizet/DF2K_OST), a combined dataset of high-quality images from:
|
| 37 |
-
- DIV2K
|
| 38 |
-
- Flickr2K
|
| 39 |
-
- OutdoorSceneTraining
|
| 40 |
|
| 41 |
All images resized to 256×256 pixels using Lanczos resampling.
|
| 42 |
|
|
@@ -45,7 +45,7 @@ All images resized to 256×256 pixels using Lanczos resampling.
|
|
| 45 |
**Hyperparameters:**
|
| 46 |
- Optimizer: Adam (lr=1e-3)
|
| 47 |
- Loss function: Mean Squared Error (MSE)
|
| 48 |
-
- Batch size:
|
| 49 |
- Epochs: Up to 100 (with early stopping)
|
| 50 |
- Train/validation split: 90/10
|
| 51 |
|
|
@@ -55,7 +55,7 @@ All images resized to 256×256 pixels using Lanczos resampling.
|
|
| 55 |
- Model checkpoint (best validation loss)
|
| 56 |
|
| 57 |
**Hardware:**
|
| 58 |
-
- Single NVIDIA GPU with memory growth enabled
|
| 59 |
|
| 60 |
## How to use
|
| 61 |
|
|
|
|
| 17 |
- Normalization: Batch normalization
|
| 18 |
|
| 19 |
**Performance:**
|
| 20 |
+
- Compression ratio: 96×
|
| 21 |
- Target PSNR: >30 dB
|
| 22 |
- Target SSIM: >0.90
|
| 23 |
|
|
|
|
| 33 |
|
| 34 |
## Training data
|
| 35 |
|
| 36 |
+
Trained on [DF2K_OST](https://huggingface.co/datasets/gperdrizet/DF2K_OST), a combined dataset of 26.8k high-quality images from:
|
| 37 |
+
- DIV2K
|
| 38 |
+
- Flickr2K
|
| 39 |
+
- OutdoorSceneTraining
|
| 40 |
|
| 41 |
All images resized to 256×256 pixels using Lanczos resampling.
|
| 42 |
|
|
|
|
| 45 |
**Hyperparameters:**
|
| 46 |
- Optimizer: Adam (lr=1e-3)
|
| 47 |
- Loss function: Mean Squared Error (MSE)
|
| 48 |
+
- Batch size: 4
|
| 49 |
- Epochs: Up to 100 (with early stopping)
|
| 50 |
- Train/validation split: 90/10
|
| 51 |
|
|
|
|
| 55 |
- Model checkpoint (best validation loss)
|
| 56 |
|
| 57 |
**Hardware:**
|
| 58 |
+
- Single NVIDIA P100 GPU with memory growth enabled
|
| 59 |
|
| 60 |
## How to use
|
| 61 |
|