Closed genekogan closed 7 years ago
ok nevermind, i found the problem... i didn't have the color palette loaded, because i'm not using the example model you wrote the code for. false alarm. everything works great!
super! (i was writing about that cos I could see the [errors], but you found it anyways :)
hey memo!
any idea what might be causing this runtime segmentation fault in example-pix2pix-webcam? just to review my steps first:
0) i'm on a new ubuntu 16.04 with CUDA et al verified working. 1) i downloaded the correct version of
libtensorflow_cc.so
and placed it inside thelibs/tensorflow/lib/linux64/
folder, and then hardcodedADDON_LDFLAGS += /home/gene/of_v0.9.8_linux64_release/addons/ofxMSATensorFlow/libs/tensorflow/lib/linux64/libtensorflow_cc.so
in the addon_config (was having trouble with relative paths for some reason, this fixed that). 2) i generated a model (called sotu3) using the steps you said, including the necessary changes to pix2pix-tensorflow and then freezing and exporting the graph. 3) i'm just making from the terminal, no IDE installed just yet. runningmake Debug
works fine, but then when i attempt to run it,make RunDebug
everything appears to open okay, but the ofApp window never opens and it crashes on a segmentation fault (output is below).i suspect the shared library is loaded fine, because otherwise it would crash while loading the model, i think? it appears to be crashing on
proc_pixels.setColor(x, y, colors[color_index]);