Comments (4)
the problem seems to be caused by the floor operation? Maybe int(4.0)==5. Since I can not reproduce this problem, i do not know the true the problem.
So, it is very helpful if you provide more information about the python version.
from meta-sr-pytorch.
Thank you for your answer.
my torch_version is 1.0.1, python version is 3.5 and in my python int(4.0)==4
I printed the shape of variable:
h_project_coord_shape: torch.Size([512])
h_offset_shape: torch.Size([128, 4, 1])
offset_h_coord_shape: torch.Size([512])
from meta-sr-pytorch.
check the int_project_coord matrix. maybe the torch.floor(h_project_coord)
or int_h_project_coord = int_h_project_coord.int() cause the floor problem.
some pixels apear 5 times(which will cause the index out problem).
from meta-sr-pytorch.
thanks, I know the problem.
It is the fault of tensor.mul(). I find that in my torch version 'torch.arange(0,outH, 1).mul(1.0/scale)=0'
change
h_project_coord = torch.arange(0,outH, 1).mul(1.0/scale).float()
to
h_project_coord = torch.arange(0,outH, 1).float().mul(1.0/scale)
It is ok
from meta-sr-pytorch.
Related Issues (20)
- Have you debugged it yet?
- Meta-Upscale Module
- meta-upscale
- meta-upscale的输入
- 请问输入矩阵为什么需要mask
- Meta-upscale的实现 HOT 3
- RuntimeError: cuda runtime error (2) HOT 5
- Trying to train Meta-RCAN but failed HOT 2
- Testing directories HOT 3
- rewrite dataloader for more recnt Pytorch
- meta-learning for weight prediction
- dataloader error, help plz~
- Higher PSNR when i use pretrained model?
- 请问怎样运行 geberate_LR_metasr_X1_X4.m 文件?
- Pretrained models
- 如何将MetaUpSampler 改成适用于3d图像的上采样?
- 请问,想改成 针对3d数据,该怎么改? 比如(batch,C, h, w, d),超分到(batch, C, H, W, D)。 HOT 2
- 你好,能帮忙指点下吗? 改成3d 后 pos_mat_small 维度不是Scale x Scale x Scale x 3的维度? h_offset这需要改吗? HOT 3
- 你好,cols = nn.functional.unfold(up_x.permute(0, 2, 3, 1), self.kernel_size, padding=1),该咋改呀? HOT 1
- Pre-training model selection for testing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-sr-pytorch.