Git Product home page Git Product logo

Comments (6)

CDOTAD avatar CDOTAD commented on July 16, 2024

你试一试

     trimap_img = Image.open(trimap_path).convert('L')
     alpha_img = Image.open(alpha_path).convert('L')

from alphagan-matting.

shartoo avatar shartoo commented on July 16, 2024

这个也不行。。

from alphagan-matting.

CDOTAD avatar CDOTAD commented on July 16, 2024

你用的什么版本的pytorch。或许这个说法是对的output with shape [1, 28, 28] doesn't match the broadcast shape [3, 28, 28]

from alphagan-matting.

shartoo avatar shartoo commented on July 16, 2024

按照那个说法 input_dataset.py中的76-79行应该改为

   self.transform = transforms.Compose([
            transforms.ToTensor(),
            transforms.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])
        ])

但是依然是 不匹配的错误。我用的是pytorch 1.0版本。

from alphagan-matting.

CDOTAD avatar CDOTAD commented on July 16, 2024

你试试看最新的这次更新的input_dataset.py

from alphagan-matting.

shartoo avatar shartoo commented on July 16, 2024

我记得昨天就是这样改过的,也在这里发布了,怎么没了。不过这个问题可以按照你最新的input_dataset.py来修改,可以的。

from alphagan-matting.

Related Issues (16)

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.