visual-qa icon indicating copy to clipboard operation
visual-qa copied to clipboard

dumpText.py returns with 'Killed'

Open aniemerg opened this issue 8 years ago • 2 comments

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.

aniemerg avatar Feb 29 '16 15:02 aniemerg

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.

avisingh599 avatar Feb 29 '16 16:02 avisingh599

You can follow these steps to run it. Avisingh599 is right. You need to expend your swap~

tczhangzhi avatar Nov 09 '17 13:11 tczhangzhi