This project takes the input image and produces an audio file containing the description of the image in your preferred language.
- For the image captioning task, I have used
CogFlorence-2-Large-Freezemodel. - Further, IndicTrans2 is used for the translation task, which then further uses gtts to suppot audio.
- Flask is used to create the website interface.
- Clone the repository
git clone https://github.com/udayb3/aiml_lab
- Ensure that you have python runtime environment with the python version
python3.12. - Next, Create a virtual environment using pip/conda. Usage of pip is shown here.
python -m venv myvenv
- For Windows: > ./myvenv/scripts/activate
- For Linux:
source ./myvenv/bin/activate
- Clone the Hugging face interface from github
cd Models git clone https://github.com/AI4Bharat/IndicTrans2.git cd IndicTrans2/huggingface_interface git clone https://github.com/VarunGumma/IndicTransToolkit cd IndicTransToolkit pip install --editable ./
- Install the dependencies using:
pip install -r requirements.txt