This Streamlit app colorizes grayscale Synthetic Aperture Radar (SAR) images using a GAN-based model.
- Upload grayscale SAR images
- Colorize images using a pre-trained GAN model
- Send original and colorized images via email
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run test.py
- Enter your email address
- Upload a grayscale SAR image
- Click "Colorize Image"
- View the colorized image and receive both images via email
test.py
: Main Streamlit appwith_attachments.py
: Email sending functionalityrequirements.txt
: Required Python packages
The app uses a pre-trained GAN model hosted on Hugging Face Hub:
- Repository: Hammad712/GAN-Colorization-Model
- Filename: generator.pt
Ensure you have proper credentials and permissions for the email functionality.