Comments (9)
I have tried in on different sizes as well without any issues. The important part is that the flow is being rescaled, just like in the official implementation.
Line 328 in 9cf1e29
from pytorch-pwc.
my picture is a jpg of size 1920*1080
from pytorch-pwc.
I am afraid that I a little bit confused. It says remember that there is no guarantee for correctness, comment this line out if you acknowledge this and want to continue
, have you tried commenting the line out?
from pytorch-pwc.
For anyone who faces the same issue, commenting the lines restricting the size can solve the issue. Thanks !!
from pytorch-pwc.
I wouldn't necessarily call it an issue though, it is more like an acknowledgement.
from pytorch-pwc.
in fact, I used inputs with same size and got size mismatch problem in the middle of the network.
File "/home/wangxinrui/bbox_net/flow_net.py", line 104, in forward
tensorInput = torch.cat([ tensorInput, self.tensorPartial ], 1)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 8 and 7 in dimension 2 at /opt/conda/conda-bld/pytorch_1535491974311/work/aten/src/THC/generic/THCTensorMath.cu:87
from pytorch-pwc.
Would you mind sharing the images that cause this error? If not, what is their resolution?
from pytorch-pwc.
I tested again and found 224224 resolution caused this problem while 256256 worked well. I guess the image resolution should be divided by 64.
from pytorch-pwc.
I am not exactly sure what happened in your case, see the following excerpt.
Line 311 in e76ece2
Which ensures that the resolution is divisible by 64 and resizes 224x224 to 256x256 accordingly.
from pytorch-pwc.
Related Issues (20)
- Can it test in CPU device? HOT 1
- Cannot inspect the model using TensorBoard HOT 4
- Generalization to unseen data HOT 1
- how to compute optical flow for small size imgs? HOT 1
- what is the range of optical flow value in an image? HOT 1
- About the direction of estimated flow HOT 2
- About pwc-net pretrained model in pytorch version HOT 1
- Just want to confirm if my analysis of your commit 5f4d7de is correct HOT 7
- In run.py, self.netSix has out_channels = 196. Paper says 192. HOT 1
- Receiving a random error, CUDA_ERROR_ILLEGAL_ADDRESS HOT 9
- CuPy correlation layer error HOT 4
- Cupy cuda error. HOT 1
- What is the purpose of `tenMask` in `run.backwarp`? HOT 2
- the two same images HOT 4
- I already did what @fabiopk said but I am still getting this error HOT 2
- How to change the cuda version of correlation.py to the python version HOT 1
- how to import frames of river videos into PWC-Net codes HOT 7
- cupy issue HOT 1
- Normalization in `backward` function. HOT 1
- Deprecation of cupy.cuda.compile_with_cache() in cupy 13.0 HOT 3
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 pytorch-pwc.