Comments (5)
with pytorch 1.9 and mmcv 1.4.3
from mmflow.
I try the same command line
python tools/test.py configs/raft/raft_8x2_100k_flyingchairs_368x496.py /ckpt/raft_8x2_100k_flyingchairs.pth --eval EPE
but didn't meet the issue.
May you add breakpoints at the following line, and check the input image shape before extract_feat
, and the valid shape is N, 6, H, W
.
File "root/framework/optical_flow/mmflow/mmflow/models/flow_estimators/raft.py", line 145, in forward_test
feat1, feat2, h_feat, cxt_feat = self.extract_feat(imgs)
from mmflow.
@MeowZheng Thank you for the promptly feedback
I have added to print image shape based on your suggestion
print(imgs.shape):
Result: torch.Size([1, 1, 6, 384, 512])
I have added to print
print(data['imgs']) at
https://github.com/open-mmlab/mmflow/blob/master/mmflow/apis/test.py#L47
May you help to let me know where I shall continue to investigate? Thanks.
DataContainer([tensor([[[[-0.8353, -0.8588, -0.8667, ..., -0.2863, -0.2863, -0.2784],
[-0.8980, -0.8824, -0.8431, ..., -0.2863, -0.2863, -0.2863],
[-0.8510, -0.8824, -0.8745, ..., -0.2392, -0.2549, -0.2549],
...,
[-0.9686, -0.9608, -0.9529, ..., -0.8902, -0.8824, -0.8510],
[-0.9451, -0.9608, -0.9686, ..., -0.8902, -0.8745, -0.8588],
[-0.9294, -0.9608, -0.9765, ..., -0.8980, -0.8824, -0.8745]],
[[-0.8667, -0.8902, -0.8980, ..., -0.1294, -0.1294, -0.1294],
[-0.9059, -0.8902, -0.8510, ..., -0.1294, -0.1294, -0.1294],
[-0.8588, -0.8902, -0.8824, ..., -0.0745, -0.0980, -0.1059],
...,
[-0.9608, -0.9529, -0.9529, ..., -0.9216, -0.9373, -0.9216],
[-0.9373, -0.9529, -0.9686, ..., -0.9216, -0.9451, -0.9294],
[-0.9216, -0.9529, -0.9765, ..., -0.9294, -0.9529, -0.9451]],
[[-0.8275, -0.8510, -0.8588, ..., -0.0353, -0.0275, -0.0275],
[-0.8902, -0.8745, -0.8196, ..., -0.0353, -0.0353, -0.0275],
[-0.8275, -0.8588, -0.8510, ..., 0.0275, -0.0039, 0.0039],
...,
[-0.9765, -0.9686, -0.9529, ..., -0.8824, -0.9137, -0.8980],
[-0.9529, -0.9686, -0.9686, ..., -0.8824, -0.9216, -0.9059],
[-0.9373, -0.9686, -0.9765, ..., -0.8902, -0.9294, -0.9216]],
[[-0.8353, -0.8588, -0.8667, ..., -0.2706, -0.2706, -0.2627],
[-0.8980, -0.8824, -0.8431, ..., -0.2706, -0.2706, -0.2627],
[-0.8510, -0.8824, -0.8745, ..., -0.2784, -0.2784, -0.2706],
...,
[-0.9686, -0.9608, -0.9529, ..., -0.8902, -0.8824, -0.8510],
[-0.9451, -0.9608, -0.9686, ..., -0.8902, -0.8745, -0.8588],
[-0.9294, -0.9608, -0.9765, ..., -0.8980, -0.8824, -0.8745]],
[[-0.8667, -0.8902, -0.8980, ..., -0.1216, -0.1137, -0.1059],
[-0.9059, -0.8902, -0.8510, ..., -0.1216, -0.1137, -0.1059],
[-0.8588, -0.8902, -0.8824, ..., -0.1216, -0.1216, -0.1137],
...,
[-0.9608, -0.9529, -0.9529, ..., -0.9216, -0.9373, -0.9216],
[-0.9373, -0.9529, -0.9686, ..., -0.9216, -0.9451, -0.9294],
[-0.9216, -0.9529, -0.9765, ..., -0.9294, -0.9529, -0.9451]],
[[-0.8275, -0.8510, -0.8588, ..., -0.0196, -0.0196, -0.0118],
[-0.8902, -0.8745, -0.8196, ..., -0.0196, -0.0196, -0.0118],
[-0.8275, -0.8588, -0.8510, ..., -0.0196, -0.0196, -0.0118],
...,
[-0.9765, -0.9686, -0.9529, ..., -0.8824, -0.9137, -0.8980],
[-0.9529, -0.9686, -0.9686, ..., -0.8824, -0.9216, -0.9059],
[-0.9373, -0.9686, -0.9765, ..., -0.8902, -0.9294, -0.9216]]]])])
from mmflow.
Hi, solved!
I have installed a CPU-version of pytorch and cause this issue:
Have resolved with following installation flow
- conda create -n mmflow python=3.8 conda -y
- conda activate mmflow
- conda install pytorch torchvision cudatoolkit=11.3 -c pytorch
- pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/index.html
- pip install -r requirements/build.txt
- pip install -v -e .
But I found another issue
(1)
Line 57 in 40caf06
(2)
mmflow/mmflow/datasets/utils/flow_io.py
Line 41 in 40caf06
The order seem to be reverse? Thanks
from mmflow.
Many thanks for you finding the bug of write_flow
. Community contributions are more than welcome in OpenMMLab repos and we hope to cooperate deeply with the community, so we very much appreciate it if you create a PR to fix the bug. Here is a tutorial for creating PR https://github.com/open-mmlab/mmcv/blob/master/docs/en/community/pr.md
from mmflow.
Related Issues (20)
- When I want to fintune base on pre-trained RAFT mixed model,how to determine the ratio of old and new data?
- mmcv 1.7.0 not supported HOT 1
- How to understand "RepeatDataset"? HOT 3
- Inference with tensor input HOT 1
- install.md, demo run relies on opencv
- mmflow vs modelzoo, the onnx model of former is more complex than the latter?
- pytorch1.9.1-->1.12.1 RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
- [BUG] AttributeError: 'ConfigDict' object has no attribute 'test_pipeline' HOT 2
- run 1920*960 video meet same problem RuntimeError: shape '[240, -1, 240, 128]' is invalid for input of size 3276800 HOT 1
- Indentation error?
- Compatibility with mmcv > 2.0.0 HOT 1
- traning and validation graph visulaization
- AttributeError: module 'mmflow' has no attribute 'PWC_Net
- ModuleNotFoundError: No module named 'mmcv.runner' HOT 3
- RuntimeError: correlation_forward_impl: implementation for device cpu not found.
- [Feature] Any plan to support LiteFlowNet3
- Are there any versions of MMCV that could support both MMflow and MMpose at the same time? Or do you have any other solution for this?
- Inference with sequence of multiple images for a particular single pixel
- Can't work with np.ndarray input
- The mmcv-full version problem. How can I install it properly?
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 mmflow.