{"repo":"Jzou44/photo2pixel","free":true,"listed":false,"github":"https://github.com/Jzou44/photo2pixel","clone":"git clone https://github.com/Jzou44/photo2pixel.git","description":"Algorithm used in photo2pixel.co to convert photo to pixel style(8-bit) art.","language":"Python","stars":505,"topics":["image-processing","pixel","pixel-art","pixelart","pytorch"],"license":"Apache-2.0","category":"machine-learning","readme_excerpt":"Photo2Pixel --- English 简体中文 Online Tool Colab Tutorial photo2pixel is an algorithm converting photo into pixel art. There is an online converter coding.tools/photo2pixel . you can try different combination of pixel size and edge threshold to get the best result. Prerequisites - python3 - pytorch (for algorithm implementation) - pillow (for image file io) - onnx and onnxruntime (for single-file ONNX export/inference) Tutorial --- photo2pixel is implemented with Pytorch, the easiest way to run it is Colab, or you can run it with command as bellow: Export one configurable ONNX file and reuse it for different settings: The exported ONNX file has runtime inputs for kernel size , pixel size , and edge thresh , so one file can be reused across config combinations. Parameter Description Range Default ------------- :-------------------------------------------------------------------------: :-----------: :-----------------------------------: input input image path / ./images/example input mountain.jpg output output image path / ./result.png kernel size larger kernel size means smooth color transition unlimited 10 pixel size individual pixel size unlimited 16 edge thresh the black line in edge region, lower edge threshold means more black line 0 255 100 updated by openclaw at 20260312","default_branch":null,"files":null,"tree":[],"storefront":"/r/Jzou44","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Jzou44/photo2pixel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}