build-small-hackathon/visual-lineage
Visual Lineage
A 23andMe for imagined instruments.
Blend culturally-sourced instrument LoRAs trained on FLUX.2 klein (4B), generate hybrid instrument images with full provenance tracking, and convert them to 3D meshes for printing.
How it works
- Harvest — We source legally-clear (CC0/CC-BY/Public domain) images of culturally specific instruments from Wikimedia Commons and Openverse.
- Train LoRAs — Each instrument gets its own LoRA (350MB) trained on FLUX.2 klein via Modal (A10G GPU).
- Compose — In this Gradio app, pick any two instruments, set a blend ratio, and describe your imagined hybrid.
- Prove ancestry — Every generation shows a provenance record: which LoRAs were blended, at what weights, with what prompt and seed.
- Convert to 3D — Download the image and use the included ComfyUI workflows (Tripo API / TripoSR) to generate a 3D mesh for CAD → 3D printing.
Published LoRAs
Tech Stack
ComfyUI 3D Workflows
Located in comfy_workflows/ of the repo:
tripo_api_image_to_3d.json— Tripo cloud API (bring your own API key)triposr_image_to_3d.json— Local TripoSR (experimental, requires full VAE)
Build Small Hackathon
This project was built for the Build Small hackathon (June 2026).
Track: Backyard AI — practical, problem-solving apps built to improve daily life.
What it does: Allows musicians, instrument makers, and tinkerers to visually explore hybrid instrument designs by blending the visual DNA of culturally significant instruments, then export those designs toward 3D printing — bridging AI generation with physical fabrication.
Sustainability: Each LoRA is only 350MB. The base model (FLUX.2 klein at 4B parameters) runs well on consumer GPUs. The entire pipeline from dataset harvest to training to inference uses open-source tools and runs on accessible hardware.
