Skip to content

Restoration of Distorted Social Media Images#1068

Open
dheeraj00001 wants to merge 6 commits into
abhisheks008:mainfrom
dheeraj00001:feat-restoration-gan
Open

Restoration of Distorted Social Media Images#1068
dheeraj00001 wants to merge 6 commits into
abhisheks008:mainfrom
dheeraj00001:feat-restoration-gan

Conversation

@dheeraj00001

@dheeraj00001 dheeraj00001 commented May 26, 2026

Copy link
Copy Markdown

Pull Request: Restoration of Distorted Social Media Images

Issue: #639
Contributor: Gurijala Dheeraj Reddy (dheeraj00001)
Program: GSSoC'26

Closes #639

Summary

This PR adds a facial restoration project that addresses image degradation from social media compression, motion blur, and sensor noise using a Component-Based Hybrid GAN architecture.

Changes

  • Added project directory Restoration_of_Distorted_Social_Media_Images/ following repository structure conventions
  • Implemented Hybrid GAN in PyTorch with:
    • U-Net generator with residual learning
    • Global PatchGAN discriminator for full-image realism
    • Local feature discriminators for eyes, nose, and mouth regions
    • Identity-preserving loss using VGG-16 feature extraction
  • Included documentation: technical README, architecture overview, and metric analysis (PSNR, SSIM, LPIPS)
  • Hosted model weights (694MB) on Hugging Face; download instructions in Model/README.md

Testing

  • Quantitative evaluation: PSNR >28dB, SSIM >0.85, LPIPS <0.15 on held-out test set
  • Qualitative validation: side-by-side comparison grids of distorted inputs, restored outputs, and ground truth
  • Inference pipeline verified in local environment with Python 3.11 and PyTorch 2.0

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Checklist

  • Code follows project style guidelines
  • Self-review of implementation completed
  • Code commented where logic is non-obvious
  • Documentation updated to reflect changes
  • No new warnings introduced
  • Feature validated with test cases and metric thresholds
  • No unmerged dependencies

Notes

  • Model weights exceed GitHub LFS limits; hosted externally with verified download link
  • Training scripts and synthetic distortion pipeline included for reproducibility
  • Compatible with CUDA 11.7+; CPU inference supported with reduced throughput

@github-actions

Copy link
Copy Markdown

Our team will soon review your PR. Thanks @dheeraj00001 :)

@dheeraj00001 dheeraj00001 changed the title Feat restoration gan facial restoration of distorted images using hybrid gan architecture May 26, 2026

@abhisheks008 abhisheks008 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. But the rendering of the notebook in Github web is taking time, hence I am not able to see the code you shared. Let the glitch fixed, will update you on the merger of the ppull request.

@dheeraj00001

@abhisheks008 abhisheks008 added Status: Review Ongoing GSSOC 2026 Issues marked for GSSOC 2026 labels May 30, 2026
@abhisheks008 abhisheks008 changed the title facial restoration of distorted images using hybrid gan architecture Restoration of Distorted Social Media Images May 30, 2026
@dheeraj00001

Copy link
Copy Markdown
Author

Thanks for the review. If the notebook rendering issue persists on GitHub, the code can still be reviewed directly from my commit history and commit details.
Link: 9d36e0d
Thank You.

@abhisheks008 abhisheks008 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dheeraj00001 can you please upload the complete .ipynb file, in which all the EDA, data processing and all the models are implemented and showcased for this project. I can see only one model, but you need to showcase all the models you have built for this project.

@dheeraj00001

Copy link
Copy Markdown
Author

Yeah, I've updated everything you've mentioned. Please merge the pr and close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSSOC 2026 Issues marked for GSSOC 2026 Status: Requested Changes Changes requested.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Project Addition]: Restoration of Distorted Social Media Images

2 participants