title | emoji | colorFrom | colorTo | sdk | sdk_version | app_file | pinned | license |
---|---|---|---|---|---|---|---|---|
Rubiks Cube Recognition |
๐ฒ |
blue |
red |
gradio |
4.19.2 |
app.py |
false |
apache-2.0 |
This is a deep learning model that can recognize and analyze Rubik's cubes in images. The model is built using TensorFlow and RetinaNet architecture for object detection.
- Real-time Detection: Upload images of Rubik's cubes for instant analysis
- Multi-class Recognition: Detect cube faces and 6 different color tiles
- Interactive Interface: Simple and intuitive Gradio web interface
- Advanced AI: Powered by RetinaNet with SpineNet-49 backbone
- Upload: Click "Upload Rubik's Cube Image" and select your image
- Analyze: Click "๐ Analyze Image" or wait for automatic processing
- Results: View detection results and visualization with bounding boxes
- Framework: TensorFlow 2.15+ with Gradio interface
- Architecture: RetinaNet with SpineNet-49 backbone
- Input Size: 640ร640 pixels
- Classes: 7 total (1 face + 6 color tiles)
- Colors Detected: Red, White, Blue, Orange, Green, Yellow
- Base Model: RetinaNet for object detection
- Backbone: SpineNet-49 for feature extraction
- Input Resolution: 640ร640ร3
- Output: Bounding boxes with class predictions and confidence scores
face
- Rubik's cube facered_tile
- Red color tilewhite_tile
- White color tileblue_tile
- Blue color tileorange_tile
- Orange color tilegreen_tile
- Green color tileyellow_tile
- Yellow color tile
Metric | Target | Status |
---|---|---|
mAP@0.5 | >0.85 | In Training |
Inference Speed | <100ms | Optimized |
Accuracy | >90% | Evaluating |
# Clone the repository
git clone https://huggingface.co/spaces/itsyuimorii/rubiks-cube-recognition
cd rubiks-cube-recognition
# Install dependencies
pip install -r requirements.txt
# Run the application
python app.py
rubiks-cube-recognition/
โโโ app.py # Main Gradio application
โโโ requirements.txt # Python dependencies
โโโ README.md # This file
โโโ configs/ # Model configurations
โ โโโ retinanet_config.py
โโโ src/ # Source code
โ โโโ data/ # Data processing utilities
โ โโโ model/ # Model training and inference
โโโ images/ # Training and test datasets
โโโ train/ # Training images and annotations
โโโ test/ # Test images and annotations
โโโ valid/ # Validation images and annotations
- Format: COCO annotation format
- Image Size: 640ร640 pixels
- Training Images: 50+ annotated cube images
- Classes: 7 object classes (face + 6 colors)
- Annotation Tool: LabelMe
# Training command
python src/model/trainer.py --config configs/retinanet_config.py
# Inference command
python src/model/visualize.py --image path/to/cube_image.jpg
Contributions are welcome! Areas for improvement:
- Additional training data
- Model optimization
- UI/UX enhancements
- Performance improvements
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- TensorFlow Model Garden - RetinaNet implementation
- SpineNet - Backbone architecture
- Gradio - Web interface framework
- Hugging Face - Model hosting and deployment
- GitHub: @itsyuimorii
- Hugging Face: @itsyuimorii
๐ฒ Ready to solve your Rubik's cube detection challenges!