Coder Social home page Coder Social logo

Comments (3)

braindotai avatar braindotai commented on June 15, 2024

Looks like you have python 2.x ... therefore f string is giving syntax error.
You can change that line like the one below, then you're good to go

print('\nSaving final output image to:', output_path)

from watermark-removal-pytorch.

yjmike avatar yjmike commented on June 15, 2024

I modified the line in api.py as above

Make it as
print('\nSaving final output image to:', output_path)

Then I run python inference.py

It has the following error:
mac:Watermark-Removal-Pytorch MyUserName $ python inference.py
Traceback (most recent call last):
File "inference.py", line 2, in
from api import remove_watermark
File "/Users/MyUserName/Documents/GitHub/Watermark-Removal-Pytorch/api.py", line 1, in
from torch import optim
ImportError: No module named torch

I tried to install torch by
cd pytorch

Lots of files are downloaded inside my atermark-Removal-Pytorch folder as pytorch

I tried python inference.py
It still gives the above error

Can you script batch remove watermarks on multiple images?

from watermark-removal-pytorch.

braindotai avatar braindotai commented on June 15, 2024

cd command doesn't install anything... It stands for change directory... You have to install pytorch through pip, head over to pytorch official website for complete installation guide based on your operating system.

And removing watermark for multiple images is not possible... It's just not how the model works.
You can try passing batch of images with batch of overlay masks but the outputs wouldn't be as good as compared to single image training.

from watermark-removal-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.