This project demonstrates an application that generates 3D objects from segmented images using AI-powered image generation and segmentation techniques.
- Image generation from text prompts using ComfyUI
- Image segmentation using SAM2 (Segment Anything Model 2)
- 3D model generation from segmented image parts
- Interactive 3D scene visualization using Three.js and React Three Fiber
- React
- TypeScript
- Three.js
- React Three Fiber
- ComfyUI
- SAM2 (Segment Anything Model 2)
- Flask (for backend services)
- Clone the repository
- Install frontend dependencies:
npm install
- Install backend dependencies:
pip install -r requirements.txt
- Start the Flask backend server:
python service/sam_segmentation_service.py
- Start the React development server:
npm start
- Enter a text prompt to generate an image
- Click on the generated image to select a segment
- The application will attempt to create a 3D model from the selected segment
- View and interact with the 3D model in the right panel
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.