Improved Art Reconstruction Pipeline Using Mask2Former, ControlNet and Diffusion v1.5#14
Open
Srishti-1806 wants to merge 1 commit intohumanai-foundation:mainfrom
Open
Improved Art Reconstruction Pipeline Using Mask2Former, ControlNet and Diffusion v1.5#14Srishti-1806 wants to merge 1 commit intohumanai-foundation:mainfrom
Srishti-1806 wants to merge 1 commit intohumanai-foundation:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Art Reconstruction Pipeline - Improvements Summary
Overview
The existing
trainModel.ipynbnotebook has been completely updated with the improved AI-driven art reconstruction pipeline using state-of-the-art models and advanced techniques.What Was Updated
1. trainModel.ipynb - Enhanced Jupyter Notebook
2. pipeline.py - Core Pipeline Implementation
ArtReconstructionPipelinewith object-oriented designMask2FormerForInstanceSegmentation(large ViT backbone) - replaces basic Mask2FormerStableDiffusionControlNetInpaintPipelinev1.5 - improved generationDDIMScheduler- faster inference3. test_pipeline.py - Validation Test Suite
4. requirements.txt - Dependencies
Model Improvements
Pipeline Architecture
Usage
In Jupyter Notebook
Command Line
Test Suite
Performance Metrics
The notebook now includes:
Key Enhancements
1. Better Preprocessing
2. Smarter Edge Detection
3. Advanced Segmentation
4. Intelligent Mask Fusion
5. Enhanced Generative Inpainting
6. Professional Super-Resolution
Testing & Validation
✓ Syntax Validation: All Python files compile without errors
✓ Module Structure: All classes and methods properly implemented
✓ Dependencies: All required packages documented
✓ Error Handling: Comprehensive logging and exception handling
✓ Backwards Compatible: Code structure allows easy extension
Resources
trainModel.ipynb- Full interactive pipeline with visualizationspipeline.py- Object-oriented implementationtest_pipeline.py- Validation and testingrequirements.txt- All required packagesNotes
Year: 2026
Status: Ready for testing and deployment
Next Steps: Run the Jupyter notebook with test image or provide your own artwork for reconstruction
Test results have been attached in the GSOC Proposal