You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use mmflow as a third-party package and install it with pip. I want use the mmflow's specific model such as FlowNet, GMA or RAFT ... as a flow estimator without the need to train or fine-tune. But instead of providing as image path or ndarray to the function inference_model, I want to Inference with tensor input:
I think the reason it doesn't work is because the images need to first be passed through a data pipeline that applies various transformations to the images before they can be used as input to the model (cf. inference_model function, in particular test_pipeline = Compose(cfg.pipeline)). This pipeline appears to be applied to each image one by one, rather than processing the whole batch, and also seems to have been implemeted for numpy arrays only. This is very unfortunate, because I would also like inference to work with batches of tensors... :/
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug
I use mmflow as a third-party package and install it with pip. I want use the mmflow's specific model such as FlowNet, GMA or RAFT ... as a flow estimator without the need to train or fine-tune. But instead of providing as image path or ndarray to the function
inference_model
, I want to Inference with tensor input:However the error catchs me:
could you please provide any suggestions? Thanks in advance!
The text was updated successfully, but these errors were encountered: