|
Download README.md from VoidZeroe/XT8: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/VoidZeroe/XT8/resolve/main/README.md
- Command line
-
hf download hf://VoidZeroe/XT8/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/VoidZeroe/XT8/resolve/main/README.md
2.11 kB
| license: other | |
| language: | |
| - en | |
| metrics: | |
| - accuracy | |
| pipeline_tag: image-to-image | |
| # SketchCleanUp | |
| A tool for cleaning up and refining sketches using techniques from *Mastering Sketch*. Provides an interactive Gradio-based UI for users to upload, process, and download cleaned sketches. | |
| --- | |
| ## Features | |
| - **Automatic Stroke Refinement**: Smooth and normalize sketch strokes for a cleaner look. | |
| - **Noise Reduction**: Remove unwanted artifacts and stray marks. | |
| - **Adaptive Thresholding**: Enhance line clarity based on local pixel intensity. | |
| - **User Controls**: Adjustable parameters for fine-tuning cleanup. | |
| - **Batch Prediction**: leverages GPU availability for Batch generation. | |
| - **Global Input**: the models work well with both pencil sketches and digital sketches. | |
| - **Interactive UI**: Powered by Gradio for easy, browser-based interaction. | |
| --- | |
| ## Installation | |
| 1. **Clone the repository** | |
| ```bash | |
| huggingface-cli login | |
| huggingface-cli download VoidZeroe/XT8 --local-dir SketchCleanUp | |
| ``` | |
| 2. **Navigate to project directory** | |
| ```bash | |
| cd SketchCleanUp | |
| ``` | |
| 3. **Install requirements** | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| --- | |
| ## Usage | |
| Launch the Gradio UI by running: | |
| ```bash | |
| python main.py | |
| ``` | |
| Once started, open the provided local URL in your browser. You can then: | |
| 1. Upload your sketch image (supported formats: PNG, JPG, BMP). | |
| 2. Adjust cleanup parameters (e.g., smoothing strength, threshold level). | |
| 3. Click **Process** to generate the cleaned sketch. | |
| 4. Download the result. | |
| --- | |
| ## Contributing | |
| Contributions are welcome! Please open issues or submit pull requests for bug fixes, new features, or improvements. | |
| 1. Fork the repository | |
| 2. Create a feature branch (`git checkout -b feature/my-feature`) | |
| 3. Commit your changes (`git commit -m "Add my feature"`) | |
| 4. Push to the branch (`git push origin feature/my-feature`) | |
| 5. Open a Pull Request | |
| --- | |
| ## Acknowledgments | |
| - Based research by [*Mastering Sketch Research*](https://github.com/bobbens/sketch_simplification/tree/master) | |
| - Built with [Gradio](https://gradio.app/) and OpenCV |