Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picture merging #179

Open
Lucretious opened this issue Nov 25, 2019 · 1 comment
Open

picture merging #179

Lucretious opened this issue Nov 25, 2019 · 1 comment

Comments

@Lucretious
Copy link

Hi,

I am quite new to python and tensorflow, but I liked the possibilities of your script, so I tried it. But I cannot find tensorflow 1.4. The earliest version to install seems to be 1.13. And there seem to have been a few changes to the internal code in tf, since 1.4. When I try to run your merge-code:

$ python tools/process.py \

--input_dir a
--b_dir b
--operation combine
--output_dir c

i get some errors telling me, that there are functions used, that don´t exist in tf 1.13 anymore. I also tried the newer versions up to tf 2.0. Is there a way to install the old versions of tf? Doing this with pip doesn´t work. Or can someone tell me, how to change code, if it isn´t to complex for a newbie?

Here´s the full error-message I get:

WARNING:tensorflow:From E:\Python\Python37\lib\site-packages\tensorflow\python\ops\math_ops.py:3528: setdiff1d (from tensorflow.python.ops.array_ops) is deprecated and will be removed after 2018-11-30.
Instructions for updating:
This op will be removed after the deprecation date. Please switch to tf.sets.difference().
WARNING:tensorflow:From E:\Python\Python37\lib\site-packages\tensorflow\python\ops\control_flow_ops.py:3632: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
Traceback (most recent call last):
File "tools/process.py", line 306, in
main()
File "tools/process.py", line 242, in main
for src_path in im.find(a.input_dir):
File "C:\Users\Master\pix2pix-tensorflow\tools\tfimage.py", line 115, in find
for filename in os.listdir(d):

@ReidTissing
Copy link

I hope you've solved this by now, but if it helps anyone in the future:
Python 3.7 doesn't support Tensorflow GPU, but Python 3.6 does. Creating a virtual environment in conda or the GPU-supported Windows Linux Subsystem should get you up and running. Here's a link with the resolved issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants