Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Optical flow loader for Davis dataset #10

Closed
wants to merge 1 commit into from

Conversation

fral92
Copy link
Contributor

@fral92 fral92 commented Jun 3, 2017

No description provided.

Copy link
Owner

@fvisin fvisin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. Looks good overall, but I was wondering if you can make it more general so that we can share it with the other datasets.

How hard do you think it could be to move the relevant code in parallel_loader.py, where the data augmentation takes place? I don't have time to look into it in detail now, but I think it should be easy to check whether there is a dir in the dataset path containing the requested optical flow and in that case to load it from there rather than computing it.

From a high level perspective, this is what I would check:

  • the optical flow should be computed on the unprocessed (uncropped / skewed / etc ..) image, so that we don't have to store all the possible transformations. I am afraid that we are doing the opposite at the moment (not to have to transform the OF), it should be checked what would be the downsides to do it the other way around
  • define a standard way to name the directory and the images. The dir should be named after the technique and the chosen parameters.
  • provide a flag to store the processed frames automatically (i.e., the first time we compute the OF and there is no local cache, if the flag is True we store the OF frames)

Do you think you have time to look into it and make these changes?

self.threshold_masks = threshold_masks

if optical_flow_type is not None:
if optical_flow_type not in ['Brox', 'Farn', 'LK', 'TVL1']:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add None to the list and merge the two conditions.

@@ -55,12 +55,19 @@ def filenames(self):
def __init__(self,
which_set='train',
threshold_masks=False,
optical_flow_type=None,
split=.75,
*args, **kwargs):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a description of the parameters (some of them you can copy from other datasets)

@marcociccone
Copy link
Contributor

marcociccone commented Jun 7, 2017

Please @fral92 close this because of #12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants