crowsonkb / style_transfer

Data-parallel image stylization using Caffe.
MIT License
113 stars 14 forks source link

Python process not killed after out of memory error #15

Open raustaburk opened 7 years ago

raustaburk commented 7 years ago

On any kind of error it seems the script doesn't stop itself, it still requires ctrl+c to return to the command line. This isn't a big deal if it hasn't started processing (like the image path is wrong), but if it runs out of memory (the output image is too large) then even ctrl+c doesn't kill all the processes. When you try to run the script again it will fail because something is still running.

The current fix is to find the PID with: ps aux | grep "python" Then just kill it and everything works again: kill [pid]