Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

TD crashes when trying to import Tensorflow

General discussion about anything TouchDesigner

TD crashes when trying to import Tensorflow

Postby rubanmauve » Sun Jul 22, 2018 4:52 pm

Hello !!

I have been trying to do some neural network in TD, based on this : https://github.com/exsstas/StyleTransfer-in-TD

But as I try to import tensorflow, TD crashes. When trying to run the tensorflow sample code directly in the python prompt, it works without problem.

My python Module Path is pointing to the location of the tensorflow module. Any idea where the problem comes from ?
rubanmauve
 
Posts: 3
Joined: Fri Feb 06, 2015 12:04 am

Re: TD crashes when trying to import Tensorflow

Postby barakooda » Mon Jul 23, 2018 12:10 am

I`m also facing issues:
viewtopic.php?f=12&t=12380

Try workaround with emulating a server.
User avatar
barakooda
 
Posts: 512
Joined: Fri Nov 27, 2009 5:08 pm

Re: TD crashes when trying to import Tensorflow

Postby raganmd » Mon Jul 23, 2018 1:03 am

Have you considered calling an external python script with Popen? You can pass any arguments into that script, and get back a path to the resulting image without too much hassle.
raganmd
 
Posts: 1296
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: TD crashes when trying to import Tensorflow

Postby malcolm » Wed Jul 25, 2018 1:16 pm

So it seems like the issue is that tensorflow calls sys.exit() in various places, which will try to exit the calling process (TD).
To avoid this, put your run() call in a try: except: clause, so the SystemExit exception that get's raised doesn't get handled and quit the process.
User avatar
malcolm
Staff
 
Posts: 4110
Joined: Tue Nov 13, 2007 1:11 am

Re: TD crashes when trying to import Tensorflow

Postby ko3124 » Sun Aug 05, 2018 3:17 pm

My first setup is the same like ,it will crash when i import tensorflow

My solution is install everything ,tensorflow ,cudnn, cuda ,python

make sure your system python is 3.5 !this is very important .
and i install cuda 8.0, tensorflow 1.2
I think is the new version is not suport yet .
Good luck .
ko3124
 
Posts: 1
Joined: Fri Dec 08, 2017 12:33 am


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 10 guests