Install IndicPhotoOCR
Installation
Currently we need to manually create virtual environemnt.
conda create -n indicphotoocr python=3.9 -y
conda activate indicphotoocr
git clone https://github.com/Bhashini-IITJ/IndicPhotoOCR.git
cd IndicPhotoOCR
CPU Installation
python setup.py sdist bdist_wheel
pip install dist/IndicPhotoOCR-1.3.1-py3-none-any.whl[cpu]
CUDA 11.8 Installation
python setup.py sdist bdist_wheel
pip install ./dist/IndicPhotoOCR-1.3.1-py3-none-any.whl[cu118] --extra-index-url https://download.pytorch.org/whl/cu118
CUDA 12.1 Installation
python setup.py sdist bdist_wheel
pip install ./dist/IndicPhotoOCR-1.3.1-py3-none-any.whl[cu121] --extra-index-url https://download.pytorch.org/whl/cu121
If you find any trouble with the above installation use the setup.sh
script. Make sure you have miniconda installed.
Shell script Installation
git clone https://github.com/Bhashini-IITJ/IndicPhotoOCR.git
cd IndicPhotoOCR
chmod +x setup.sh
./setup.sh