Our project is called ImageCaption. In it provide a repository for demonstrating the work of a trained neural network, which, based on pictures, generates their text description. The repository contains a neural network model, unit tests, main code for training and code for work demonstration. We use Docker for easy launching and distribution and unit tests for testing.
Our network is based on article https://arxiv.org/abs/1502.03044
Team members:
Alexandr Voronin
Ksenia Lapshova
Nikita Kornilov
Pavel Bartenev
Yulia Sergeeva
In order to run and develop our network:
-
Clone represitory and go to its directory
-
Create docker from DockerFile with command
docker build -t text_network_image . -f Dockerfile.txt
-
Run docker image and share directory with images
docker run --name network_container -it -v $(pwd)/Images:/app/FSE_team_1_project/Images text_network_image
-
For demo on jpg image from your system, put it in folder
Images
and then run python command in docker(insteadImages/man.jpg
one can putImages/your_image_name.jpg
)python inference.py Images/man.jpg Data/captions_tokenized.json Data/CaptionNetBest2.pth
-
To test solution run python command in docker
python tests.py
-
You can also install all required packages using prereqs.sh script, compile files using build.sh script and run tests with build.sh