Downloads · 30 days
0
S-AIR-L/ReVGG-R2Net
ReVGG-R2Net is a machine learning model from S-AIR-L. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A robust implementation of ReVGG-R2Net architecture combining VGG16 encoder with Residual Recurrent Convolutional blocks for medical image segmentation.
Downloads · 30 days
0
Access
Public
Updated Dec 17, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py81.8 KB · 53%
From the Hugging Face model README
A robust implementation of ReVGG-R2Net architecture combining VGG16 encoder with Residual Recurrent Convolutional blocks for medical image segmentation.
Due to the large size of the dataset, we have hosted it on Google Drive.
You can access and download it using the following link:
👉 Download Dataset from Google Drive
The models archtechture of our approach is illustrated below:

Encoder: VGG16 with ImageNet pretrained weights (all layers trainable) Core Innovation: Residual Recurrent Convolutional Blocks (R2 blocks) Decoder: Transpose convolution with skip connections Output: Sigmoid activation for binary segmentation
dataset/
├── Original
│ ├── image1.jpg
│ ├── image2.png
│ └── ...
└── Mask
├── image1.jpg
├── image2.png
└── ...
!git clone https://github.com/FahimSultan-cyb/ReVGG-R2Net.git
import os, sys
root_path = os.path.join(os.getcwd(), "ReVGG-R2Net")
os.chdir(root_path)
!pip install -e .
!python setup_colab.py
!python download_pretrained.py
!pip install -r requirements.txt
from scripts.train import train_model
model, history = train_model("path_of_your dataset")
from scripts.evaluate import evaluate_model
results = evaluate_model(
model_path="pretrained",
test_data_path="path_of_your dataset"
)
from scripts.evaluate import evaluate_model
results = evaluate_model(
model_path="path/to/model.keras",
test_data_path="path/to/test/data"
)
from scripts.train_colab import train_model_colab
model, history = train_model_colab(data_path="path/to/dataset")
If you find this code useful for your research, please consider citing:
@article{
akter2026revgg,
title={ReVGG-R2Net: Optimized recurrent framework for microscopic blood cell segmentation},
author={Mst Shapna Akter and Md. Fahim Sultan and Tasmin Karim and Md. Shazzad Hossain Shaon},
journal={Tissue and Cell},
year={2026}
}
📌 Plain-text citation
Akter, M. S., Sultan, M. F., Karim, T., & Shaon, M. S. H. (2026).
ReVGG-R2Net: Optimized recurrent framework for microscopic blood cell segmentation.
Tissue and Cell, 98, 103189.
https://doi.org/10.1016/j.tice.2025.103189