How shiv0xparanoid/sketchify works
This repository combines a React sketch-making interface, a Python server with sketch-processing utilities, and U-2-Net model and training code. The visible user flow routes visitors to a landing page or sketch page; the sampled evidence does not establish how the browser submits sketches to the server, nor how the server uses the U-2-Net code. The graph preserves those subsystems without asserting unverified links. Server entry points and several model files are included from the tree, but their runtime wiring was not sampled.
Main entry points: App.jsx Route dispatcher · sketch.py Sketch utilities · file_handler.py Output path helper · transform.py Transform route
Components 22
Web interface
- Route dispatcher
src/App.jsx - Landing page
src/pages/LandingPage.jsx - Sketch page
src/pages/Sketch.js - Hero content
src/components/Hero.jsx - Browser script
client/script.js
Sketch backend
- Server entry
server/index.js - Python app
server/app.py - Transform route
server/routes/transform.py - Sketch processor
server/models/sketch.py - Sketch utilities
server/utils/sketch.py - Output path helper
server/utils/file_handler.py
U-2-Net model
- Model interface
server/models/u2net.py - Model demo
server/models/demo.py - Model data loader
server/models/data_loader.py - U-2-Net architecture
U-2-Net/model/u2net_refactor.py - Gradio demo
U-2-Net/gradio/demo.py - Portrait demo
U-2-Net/u2net_portrait_demo.py - Portrait compositing
U-2-Net/u2net_portrait_composite.py
Model training
- Training entry
U-2-Net/u2net_train.py - Training data loader
U-2-Net/data_loader.py - Weights setup
U-2-Net/setup_model_weights.py
Other components
- Visitor
Connections 7
- Visitor → Route dispatcher: opens
src/App.jsx - Route dispatcher → Landing page: routes to
src/App.jsx - Route dispatcher → Sketch page: routes to
src/App.jsx - Transform route → Sketch utilities: calls
server/routes/transform.py - Sketch processor → Output path helper: uses
server/models/sketch.py - Sketch utilities → Output path helper: uses
server/utils/sketch.py - Training entry → Training data loader: loads
U-2-Net/u2net_train.py