Can someone help me set up tensorflow & neural-style-tf please?
I'm pulling my hair out trying to set up tensorflow and neural-style-tf from github
https://github.com/cysmith/neural-style-tf
keep getting errors after following guides:
https://youtu.be/Rmjp1yFi9Ok?t=2109
and at this point number 6: I am getting errors. ..
'Python 3.6.7 |Anaconda, Inc.| (default, Dec 10 2018, 20:35:02) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('hello!')
>>> sess = tf.session()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'session'
>>>'
I noticed the python version says (AMD64) on Win32, is this the possible error? (i am intel)
any ideas?
many thanks for any help at all - i'm a competent end user but really in the dark with coding. I am using this for experimental moving image
edit* just wanted to add - i dont want to really touch any coding - i'm a visual artist trying to come up with new forms of moving art. All i want to do is get the neural-style code running on my PC so I can make some images. i managed before with the first public release of deepdream but that took me two days of work.
python cuda
New contributor
add a comment |Â
I'm pulling my hair out trying to set up tensorflow and neural-style-tf from github
https://github.com/cysmith/neural-style-tf
keep getting errors after following guides:
https://youtu.be/Rmjp1yFi9Ok?t=2109
and at this point number 6: I am getting errors. ..
'Python 3.6.7 |Anaconda, Inc.| (default, Dec 10 2018, 20:35:02) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('hello!')
>>> sess = tf.session()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'session'
>>>'
I noticed the python version says (AMD64) on Win32, is this the possible error? (i am intel)
any ideas?
many thanks for any help at all - i'm a competent end user but really in the dark with coding. I am using this for experimental moving image
edit* just wanted to add - i dont want to really touch any coding - i'm a visual artist trying to come up with new forms of moving art. All i want to do is get the neural-style code running on my PC so I can make some images. i managed before with the first public release of deepdream but that took me two days of work.
python cuda
New contributor
add a comment |Â
I'm pulling my hair out trying to set up tensorflow and neural-style-tf from github
https://github.com/cysmith/neural-style-tf
keep getting errors after following guides:
https://youtu.be/Rmjp1yFi9Ok?t=2109
and at this point number 6: I am getting errors. ..
'Python 3.6.7 |Anaconda, Inc.| (default, Dec 10 2018, 20:35:02) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('hello!')
>>> sess = tf.session()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'session'
>>>'
I noticed the python version says (AMD64) on Win32, is this the possible error? (i am intel)
any ideas?
many thanks for any help at all - i'm a competent end user but really in the dark with coding. I am using this for experimental moving image
edit* just wanted to add - i dont want to really touch any coding - i'm a visual artist trying to come up with new forms of moving art. All i want to do is get the neural-style code running on my PC so I can make some images. i managed before with the first public release of deepdream but that took me two days of work.
python cuda
New contributor
I'm pulling my hair out trying to set up tensorflow and neural-style-tf from github
https://github.com/cysmith/neural-style-tf
keep getting errors after following guides:
https://youtu.be/Rmjp1yFi9Ok?t=2109
and at this point number 6: I am getting errors. ..
'Python 3.6.7 |Anaconda, Inc.| (default, Dec 10 2018, 20:35:02) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('hello!')
>>> sess = tf.session()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'session'
>>>'
I noticed the python version says (AMD64) on Win32, is this the possible error? (i am intel)
any ideas?
many thanks for any help at all - i'm a competent end user but really in the dark with coding. I am using this for experimental moving image
edit* just wanted to add - i dont want to really touch any coding - i'm a visual artist trying to come up with new forms of moving art. All i want to do is get the neural-style code running on my PC so I can make some images. i managed before with the first public release of deepdream but that took me two days of work.
python cuda
python cuda
New contributor
New contributor
edited 2 days ago
New contributor
asked 2 days ago
Russell Alderton
42
42
New contributor
New contributor
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
First you need to add line breaks to your code. Add a line break after your import statement and your code should look like this.
import tensorflow as tf
hello = tf.constant('hello!')
sess = tf.Session()
Try re-running the code and see what you get. If you still get an error try re-installing tensorflow with the following command. Also, the way your are using constant doesn't really make sense if this is the first line of code in your project. If this is your first time writing code, I recommended getting familiar with the basics first.
pip3 install --upgrade --force-reinstall tensorflow-gpu
I am also not sure what you're setting a hello variable. Tensorflow is a pretty advanced library for a beginning programmer. You might want to explore some easier projects for your own sanity. Going straight into tensorflow is like learning calculus before learning to add.
I also noticed that you have a lowercase session, change the line
sess = tf.session()
sess = tf.Session()
pip3 install --upgrade --force-reinstall tensorflow-gpu I get 'invalid syntax' . this is in anaconda prompt.
â Russell Alderton
2 days ago
I just noticed in your code you have a lowercase session change the line look at my updated answer and run the code again.
â Thomas Hayes
2 days ago
i tried that, it seems to work ! many thanks. now I guess on to the next part
â Russell Alderton
2 days ago
ok, the last part is to install keras apparently? I installed git and tried via the git clone github.com/keras-team/keras.git command and got this error: File "<stdin>", line 1 git clone github.com/keras-team/keras.git ^ SyntaxError: invalid syntax I apologise for the unclean writing i'm not used to forums where enter doesnt make a line break!
â Russell Alderton
2 days ago
run the following command in the terminalpip3 install Keras
, to get to this on windows type in cmd in the search bar and run it through there
â Thomas Hayes
2 days ago
 |Â
show 4 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First you need to add line breaks to your code. Add a line break after your import statement and your code should look like this.
import tensorflow as tf
hello = tf.constant('hello!')
sess = tf.Session()
Try re-running the code and see what you get. If you still get an error try re-installing tensorflow with the following command. Also, the way your are using constant doesn't really make sense if this is the first line of code in your project. If this is your first time writing code, I recommended getting familiar with the basics first.
pip3 install --upgrade --force-reinstall tensorflow-gpu
I am also not sure what you're setting a hello variable. Tensorflow is a pretty advanced library for a beginning programmer. You might want to explore some easier projects for your own sanity. Going straight into tensorflow is like learning calculus before learning to add.
I also noticed that you have a lowercase session, change the line
sess = tf.session()
sess = tf.Session()
pip3 install --upgrade --force-reinstall tensorflow-gpu I get 'invalid syntax' . this is in anaconda prompt.
â Russell Alderton
2 days ago
I just noticed in your code you have a lowercase session change the line look at my updated answer and run the code again.
â Thomas Hayes
2 days ago
i tried that, it seems to work ! many thanks. now I guess on to the next part
â Russell Alderton
2 days ago
ok, the last part is to install keras apparently? I installed git and tried via the git clone github.com/keras-team/keras.git command and got this error: File "<stdin>", line 1 git clone github.com/keras-team/keras.git ^ SyntaxError: invalid syntax I apologise for the unclean writing i'm not used to forums where enter doesnt make a line break!
â Russell Alderton
2 days ago
run the following command in the terminalpip3 install Keras
, to get to this on windows type in cmd in the search bar and run it through there
â Thomas Hayes
2 days ago
 |Â
show 4 more comments
First you need to add line breaks to your code. Add a line break after your import statement and your code should look like this.
import tensorflow as tf
hello = tf.constant('hello!')
sess = tf.Session()
Try re-running the code and see what you get. If you still get an error try re-installing tensorflow with the following command. Also, the way your are using constant doesn't really make sense if this is the first line of code in your project. If this is your first time writing code, I recommended getting familiar with the basics first.
pip3 install --upgrade --force-reinstall tensorflow-gpu
I am also not sure what you're setting a hello variable. Tensorflow is a pretty advanced library for a beginning programmer. You might want to explore some easier projects for your own sanity. Going straight into tensorflow is like learning calculus before learning to add.
I also noticed that you have a lowercase session, change the line
sess = tf.session()
sess = tf.Session()
pip3 install --upgrade --force-reinstall tensorflow-gpu I get 'invalid syntax' . this is in anaconda prompt.
â Russell Alderton
2 days ago
I just noticed in your code you have a lowercase session change the line look at my updated answer and run the code again.
â Thomas Hayes
2 days ago
i tried that, it seems to work ! many thanks. now I guess on to the next part
â Russell Alderton
2 days ago
ok, the last part is to install keras apparently? I installed git and tried via the git clone github.com/keras-team/keras.git command and got this error: File "<stdin>", line 1 git clone github.com/keras-team/keras.git ^ SyntaxError: invalid syntax I apologise for the unclean writing i'm not used to forums where enter doesnt make a line break!
â Russell Alderton
2 days ago
run the following command in the terminalpip3 install Keras
, to get to this on windows type in cmd in the search bar and run it through there
â Thomas Hayes
2 days ago
 |Â
show 4 more comments
First you need to add line breaks to your code. Add a line break after your import statement and your code should look like this.
import tensorflow as tf
hello = tf.constant('hello!')
sess = tf.Session()
Try re-running the code and see what you get. If you still get an error try re-installing tensorflow with the following command. Also, the way your are using constant doesn't really make sense if this is the first line of code in your project. If this is your first time writing code, I recommended getting familiar with the basics first.
pip3 install --upgrade --force-reinstall tensorflow-gpu
I am also not sure what you're setting a hello variable. Tensorflow is a pretty advanced library for a beginning programmer. You might want to explore some easier projects for your own sanity. Going straight into tensorflow is like learning calculus before learning to add.
I also noticed that you have a lowercase session, change the line
sess = tf.session()
sess = tf.Session()
First you need to add line breaks to your code. Add a line break after your import statement and your code should look like this.
import tensorflow as tf
hello = tf.constant('hello!')
sess = tf.Session()
Try re-running the code and see what you get. If you still get an error try re-installing tensorflow with the following command. Also, the way your are using constant doesn't really make sense if this is the first line of code in your project. If this is your first time writing code, I recommended getting familiar with the basics first.
pip3 install --upgrade --force-reinstall tensorflow-gpu
I am also not sure what you're setting a hello variable. Tensorflow is a pretty advanced library for a beginning programmer. You might want to explore some easier projects for your own sanity. Going straight into tensorflow is like learning calculus before learning to add.
I also noticed that you have a lowercase session, change the line
sess = tf.session()
sess = tf.Session()
edited 2 days ago
answered 2 days ago
Thomas Hayes
295
295
pip3 install --upgrade --force-reinstall tensorflow-gpu I get 'invalid syntax' . this is in anaconda prompt.
â Russell Alderton
2 days ago
I just noticed in your code you have a lowercase session change the line look at my updated answer and run the code again.
â Thomas Hayes
2 days ago
i tried that, it seems to work ! many thanks. now I guess on to the next part
â Russell Alderton
2 days ago
ok, the last part is to install keras apparently? I installed git and tried via the git clone github.com/keras-team/keras.git command and got this error: File "<stdin>", line 1 git clone github.com/keras-team/keras.git ^ SyntaxError: invalid syntax I apologise for the unclean writing i'm not used to forums where enter doesnt make a line break!
â Russell Alderton
2 days ago
run the following command in the terminalpip3 install Keras
, to get to this on windows type in cmd in the search bar and run it through there
â Thomas Hayes
2 days ago
 |Â
show 4 more comments
pip3 install --upgrade --force-reinstall tensorflow-gpu I get 'invalid syntax' . this is in anaconda prompt.
â Russell Alderton
2 days ago
I just noticed in your code you have a lowercase session change the line look at my updated answer and run the code again.
â Thomas Hayes
2 days ago
i tried that, it seems to work ! many thanks. now I guess on to the next part
â Russell Alderton
2 days ago
ok, the last part is to install keras apparently? I installed git and tried via the git clone github.com/keras-team/keras.git command and got this error: File "<stdin>", line 1 git clone github.com/keras-team/keras.git ^ SyntaxError: invalid syntax I apologise for the unclean writing i'm not used to forums where enter doesnt make a line break!
â Russell Alderton
2 days ago
run the following command in the terminalpip3 install Keras
, to get to this on windows type in cmd in the search bar and run it through there
â Thomas Hayes
2 days ago
pip3 install --upgrade --force-reinstall tensorflow-gpu I get 'invalid syntax' . this is in anaconda prompt.
â Russell Alderton
2 days ago
pip3 install --upgrade --force-reinstall tensorflow-gpu I get 'invalid syntax' . this is in anaconda prompt.
â Russell Alderton
2 days ago
I just noticed in your code you have a lowercase session change the line look at my updated answer and run the code again.
â Thomas Hayes
2 days ago
I just noticed in your code you have a lowercase session change the line look at my updated answer and run the code again.
â Thomas Hayes
2 days ago
i tried that, it seems to work ! many thanks. now I guess on to the next part
â Russell Alderton
2 days ago
i tried that, it seems to work ! many thanks. now I guess on to the next part
â Russell Alderton
2 days ago
ok, the last part is to install keras apparently? I installed git and tried via the git clone github.com/keras-team/keras.git command and got this error: File "<stdin>", line 1 git clone github.com/keras-team/keras.git ^ SyntaxError: invalid syntax I apologise for the unclean writing i'm not used to forums where enter doesnt make a line break!
â Russell Alderton
2 days ago
ok, the last part is to install keras apparently? I installed git and tried via the git clone github.com/keras-team/keras.git command and got this error: File "<stdin>", line 1 git clone github.com/keras-team/keras.git ^ SyntaxError: invalid syntax I apologise for the unclean writing i'm not used to forums where enter doesnt make a line break!
â Russell Alderton
2 days ago
run the following command in the terminal
pip3 install Keras
, to get to this on windows type in cmd in the search bar and run it through thereâ Thomas Hayes
2 days ago
run the following command in the terminal
pip3 install Keras
, to get to this on windows type in cmd in the search bar and run it through thereâ Thomas Hayes
2 days ago
 |Â
show 4 more comments
Russell Alderton is a new contributor. Be nice, and check out our Code of Conduct.
Russell Alderton is a new contributor. Be nice, and check out our Code of Conduct.
Russell Alderton is a new contributor. Be nice, and check out our Code of Conduct.
Russell Alderton is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid â¦
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid â¦
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388197%2fcan-someone-help-me-set-up-tensorflow-neural-style-tf-please%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown