visual-qa
visual-qa copied to clipboard
dumpText.py returns with 'Killed'
I installed Visual-qa in a Docker container run on a Mac. While running get_started.sh, I ran into trouble with
python dumpText.py -split train -answers modal
Running that line separately, it was exiting prematurely with the simple message "Killed". I worked line by line through the code and
qa = json.load(open(annFile, 'r'))
appears to be the source of the problems. My best guess is that JSON is attempting to load the entire training annotations file into memory fails because of its size.
I am not familiar with Mac, but when I work on Linux I usually increase my swap when I run into memory issues. I have tested the software on 8GB RAM, and about ~15GB Swap (if I remember correctly).
If that does not have work out, then you may have to break the training data into multiple files, and load them one by one while training.
You can follow these steps to run it. Avisingh599 is right. You need to expend your swap~