fungtion / drcn Goto Github PK
View Code? Open in Web Editor NEWPytorch implementation of Deep Reconstruction Classification Networks
Pytorch implementation of Deep Reconstruction Classification Networks
After epoch 5, the accuracy seems to fluctuate between 0.7 and 0.75.
Sorry,I have a problem about input and target shapes do not match when I rerun your code.
Could you give me some advices?
Traceback (most recent call last): File "main.py", line 137, in <module> err_rec = (1 - m_lambda) * loss_rec(rec_img, inputv_img) File "/home/gqwang/anaconda2/lib/python2.7/site-packages/torch/nn/modules/module.py", line 491, in __call__ result = self.forward(*input, **kwargs) File "/home/gqwang/anaconda2/lib/python2.7/site-packages/torch/nn/modules/loss.py", line 372, in forward return F.mse_loss(input, target, size_average=self.size_average, reduce=self.reduce) File "/home/gqwang/anaconda2/lib/python2.7/site-packages/torch/nn/functional.py", line 1569, in mse_loss input, target, size_average, reduce) File "/home/gqwang/anaconda2/lib/python2.7/site-packages/torch/nn/functional.py", line 1537, in _pointwise_loss return lambd_optimized(input, target, size_average, reduce) RuntimeError: input and target shapes do not match: input [64 x 1024], target [64 x 1 x 32 x 32] at /opt/conda/conda-bld/pytorch_1524577177097/work/aten/src/THCUNN/generic/MSECriterion.cu:15 Exception NameError: "global name 'FileNotFoundError' is not defined" in <bound method _DataLoaderIter.__del__ of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f35aac72b10>> ignored
Is the accuracy of the code is about 0.72? But there is 0.81 in the paper.
Whether your implementation is the official code? I try your code and want to get the performance reported in DRCN paper, while the reconstruction part has a negative effect.
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.