Code Monkey home page Code Monkey logo

usuir's People

Contributors

zhenqifu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

uvlrick wgx-dh

usuir's Issues

Batch Size

首先十分感谢作者们杰出的工作,终于有首个基于pytorch实现的无监督水下图像增强算法了,且性能上接近有监督sota,我正在做水下图像增强领域和图像分割领域的一些工作,正好需要无监督的水下图像增强算法,感谢您

在跑您的代码的时候,我发现当batch size调到1以上时,反向传播时会报loss不是标量的错误

RuntimeError: grad can be implicitly created only for scalar outputs

原因是Color Loss的维度变成了(Batch,1,1,1),我尝试简单的对Color Loss计算代码进行求均值来修正了这个error,请问您觉得这样合理吗?或者还有更好的解决方案吗?

# Color Loss
loss_3 = color_loss(j_out)
B, _, _, _ = loss_3.shape
loss_3 = torch.sum(loss_3, 0) / B

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.