Generate Arabic captions for images using Deep Learning
Image Captioning refers to the art of describing the content of an image by computers. It is a well-known problem in CV and NLP. It has many applications, such as improved information retrieval, early childhood education, for visually impaired persons, for social media, and so on. Although remarkable work has been accomplished recently for English, and due to the lack of large and publicly available dataset, the progress on Arabic Image Captioning is still lagging. Therefore, we developed our own dataset based on Flickr8K. It can be found under data/Flickr8k_text/ folder, named Flickr8k.arabic.txt. It has the exact same format as the original Flickr8K.
Inspired by recent advances in neural machine translation, the sequence-to-sequence encoder-decoder approach was adopted here.
For mode details, please check the paper: Computer_Vision_Project__IEEE_final.pdf.
-
Clone or download this repository.
-
Make sure python 3.x is installed on your PC. To check if and which version is installed, run the following command:
python -V
If this results an error, this means that python isn’t installed on your PC! please download and install it from the original website
- (optional) it is recommended that you create a python virtual environment and install the necessary libraries in it to prevent versions collisions:
python -m venv AIC
where AIC is the environment name. Once you’ve created a virtual environment, you may activate it.
AIC\Scripts\activate.bat
- Install required libraries from the provided file (requirements.txt):
pip install -r requirements.txt
Make sure you provide the correct path of requirements.txt
- Open jupyter notebook:
AIC\Scripts\jupyter-notebook.exe
then navigate to and open Arabic Image Captioning.ipynb