zuruoke/watermark-removal

Tensor Flow > 2.0

Opened this issue · 8 comments

How do I run the code using stand alone python on my laptop?

Unable to install tensor flow 1.15 as the default is 2.0 onwards now.

How do I go about it, as neuralgym has 1.15

Exactly the same issue.

You have to use Python 3.7 which will allow 1.15 to install.

You have to use Python 3.7 which will allow 1.15 to install.

I used Python 3.7,but can't work

Same issue I am trying to install tensorflow

pip3 install tensorflow==1.15.0 --ignore-installed

Getting error

ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.0 (from versions: 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.15.0rc0)
ERROR: No matching distribution found for tensorflow==1.15.0

When I tried to install python 3.7 I also get error that it is deprecated upstream

╰$ brew install python@3.7
Error: python@3.7 has been disabled because it is deprecated upstream!

Finally I have it worked on my ubuntu 22.0.4 WSL with the sample picture and mask.png . The python version is 3.10. Thetensorflow==2.13.1.
There are several python files needs to be updated via the tf_upgrade_v2. The python files includes inpaint_ops.py, inpaint_model.py and main.py.
Also some python files under the neuralgym also needs updated via tf_upgrade_v2

Finally I have it worked on my ubuntu 22.0.4 WSL with the sample picture and mask.png . The python version is 3.10. Thetensorflow==2.13.1. There are several python files needs to be updated via the tf_upgrade_v2. The python files includes inpaint_ops.py, inpaint_model.py and main.py. Also some python files under the neuralgym also needs updated via tf_upgrade_v2

Would you be willing to provide your fork repo? It would be a great help, thank you

Finally I have it worked on my ubuntu 22.0.4 WSL with the sample picture and mask.png . The python version is 3.10. Thetensorflow==2.13.1. There are several python files needs to be updated via the tf_upgrade_v2. The python files includes inpaint_ops.py, inpaint_model.py and main.py. Also some python files under the neuralgym also needs updated via tf_upgrade_v2

Would you be willing to provide your fork repo? It would be a great help, thank you

Here is my fork repo: https://github.com/bg1szd/watermark-removal
Besides the watermark-removal repo, the more changes were in the dependent neuralgym package.
I also updated it in my fork repo https://github.com/bg1szd/neuralgym
To install the updated package with !pip install git+https://github.com/bg1szd/neuralgym

Finally I have it worked on my ubuntu 22.0.4 WSL with the sample picture and mask.png . The python version is 3.10. Thetensorflow==2.13.1. There are several python files needs to be updated via the tf_upgrade_v2. The python files includes inpaint_ops.py, inpaint_model.py and main.py. Also some python files under the neuralgym also needs updated via tf_upgrade_v2

Would you be willing to provide your fork repo? It would be a great help, thank you

Here is my fork repo: https://github.com/bg1szd/watermark-removal Besides the watermark-removal repo, the more changes were in the dependent neuralgym package. I also updated it in my fork repo https://github.com/bg1szd/neuralgym To install the updated package with !pip install git+https://github.com/bg1szd/neuralgym

This works. thanks