zhenqifu / usuir Goto Github PK
View Code? Open in Web Editor NEWUnSupervised underwater image restoration
UnSupervised underwater image restoration
首先十分感谢作者们杰出的工作,终于有首个基于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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.