zuruoke / watermark-removal

a machine learning image inpainting task that instinctively removes watermarks from image indistinguishable from the ground truth image
1.86k stars 291 forks source link

Tensor Flow > 2.0 #24

Open karthikbharadwaj opened 11 months ago

karthikbharadwaj commented 11 months ago

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

marcos-hr commented 10 months ago

Exactly the same issue.

bwenger9 commented 10 months ago

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

real2do commented 10 months ago

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

I used Python 3.7,but can't work

rupeshtiwari commented 10 months ago

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!
bg1szd commented 9 months ago

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

TennyZhuang commented 9 months ago

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

bg1szd commented 9 months ago

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

msk-psp commented 8 months ago

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