The OCR with WSL repository documents my exploration of setting up WSL2 (Ubuntu on Windows) for machine learning with GPU acceleration — including TensorFlow, RAPIDS, and OCR model training. This project marks the beginning of my deep learning OCR journey on Windows. Since Windows stopped supporting native GPU acceleration after TensorFlow v2.10, I switched to WSL2 and documented every step — so no one else has to struggle like I did.


I wanted to train machine learning OCR models on Windows, but:
So I moved to WSL2, configured Ubuntu on Windows, set up CUDA, Docker, RAPIDS, and finally trained my OCR model inside Jupyter notebook.
This repository contains every command, every setup step, and the exact procedure I used to run ML workloads smoothly on Windows.
This project was built a long time ago.
There are very limited photos/videos of the working system
The complete source code is available in the GitHub repository.
tf.config.list_physical_devices('GPU'))