How dharmshah/imageto3dconverter works
MYFASHION turns garment photos into processed, reconstructed GLB assets, with a React studio for managing and viewing garments, virtual try-on, and a separate segmentation workflow. The documented reconstruction path runs from four-view intake through geometry, mesh refinement, texture baking, and GLB export; the backend also exposes local CPU segmentation. Sampled source supports the app entry points and several orchestration links; other subsystem relationships below are included only where documented or indexed.
Main entry points: pipeline.py Reconstruction pipeline · garments.py Garment routes · App.tsx Studio workspace · VirtualTryOnView.tsx Virtual try-on
Components 25
Web Studio
- Studio workspace
frontend/src/App.tsx - Garment stock
frontend/src/components/GarmentStockPanel.tsx - Virtual try-on
frontend/src/components/VirtualTryOn/VirtualTryOnView.tsx - Pose fitting
frontend/src/services/poseFittingEngine.ts - Garment deformation
frontend/src/services/garmentDeformationEngine.ts - Model manifest
frontend/src/services/garmentModelsManifest.ts - Segmentation panel
frontend/src/components/SegmentationTestPanel.tsx
Garment Workflow
- Garment API client
frontend/src/services/garmentApi.ts - FastAPI application
backend/app/main.py - Garment routes
backend/app/routes/garments.py - Garment uploads
backend/app/services/garment_upload_service.py - Image preprocessing
backend/app/services/image_preprocessing_service.py - Reconstruction jobs
backend/app/services/local_reconstruction_service.py - Mesh and GLB services
backend/app/services
3D Reconstruction
- Reconstruction pipeline
backend/app/services/reconstruction_engine/pipeline.py - View alignment
backend/app/services/reconstruction_engine/alignment.py - Geometry fusion
backend/app/services/reconstruction_engine/geometry.py - Mesh refinement
backend/app/services/reconstruction_engine/mesh_refinement.py - Texture projection
backend/app/services/reconstruction_engine/texture_projection.py - Texture blending
backend/app/services/reconstruction_engine/texture_blending.py - GLB export
backend/app/services/reconstruction_engine/glb_exporter.py
AI Segmentation
- Segmentation API client
frontend/src/services/segmentationApi.ts - Segmentation routes
backend/app/routes/segmentation.py - Segmentation inference
backend/app/services/segmentation_service.py
Other components
- Studio user
Connections 27
- Studio user → Studio workspace: uses
- Studio workspace → Garment API client: requests
frontend/src/App.tsx - Studio workspace → Garment stock: renders
frontend/src/App.tsx - Studio workspace → Virtual try-on: renders
frontend/src/App.tsx - Garment stock → Garment API client: requests
frontend/src/components/GarmentStockPanel.tsx - Garment API client → Garment routes: calls
- FastAPI application → Garment routes: registers
backend/app/main.py - FastAPI application → Segmentation routes: registers
backend/app/main.py - Garment routes → Garment uploads: delegates
backend/app/routes/garments.py - Garment routes → Image preprocessing: delegates
backend/app/routes/garments.py - Garment routes → Reconstruction jobs: submits jobs
backend/app/routes/garments.py - Garment routes → Mesh and GLB services: delegates
backend/app/routes/garments.py - Reconstruction jobs → Reconstruction pipeline: runs
backend/app/services/local_reconstruction_service.py - Reconstruction pipeline → View alignment: uses
backend/app/services/reconstruction_engine/pipeline.py - Reconstruction pipeline → Geometry fusion: uses
backend/app/services/reconstruction_engine/pipeline.py - Reconstruction pipeline → Mesh refinement: uses
backend/app/services/reconstruction_engine/pipeline.py - Reconstruction pipeline → Texture projection: projects
backend/app/services/reconstruction_engine/pipeline.py - Reconstruction pipeline → Texture blending: blends
backend/app/services/reconstruction_engine/pipeline.py - Reconstruction pipeline → GLB export: exports
backend/app/services/reconstruction_engine/pipeline.py - Virtual try-on → Pose fitting: fits pose
- Virtual try-on → Garment deformation: deforms garment
- Garment deformation → Model manifest: uses config
frontend/src/services/garmentDeformationEngine.ts - Pose fitting → Model manifest: uses config
frontend/src/services/poseFittingEngine.ts - Studio user → Segmentation panel: tests images
- Segmentation panel → Segmentation API client: requests
- Segmentation API client → Segmentation routes: calls
- Segmentation routes → Segmentation inference: invokes