Skip to content

Explanation of this implementation #34

@Guptajakala

Description

@Guptajakala

Hi, thanks for the great repo! I'm interested in finetuning the model for my research and I'm trying to understand your implementation here:

scale = np.sqrt(np.clip(np.abs(dx[1]*dy[0] - dx[0]*dy[1]), 1e-16, 1e16))

  1. what is this line doing?

  2. From the comments above, it says "applying a median filter" but I didn't see median filter afterwards. Is this comment deprecated?

  3. for _ in range(50*self.n_samples):
    Seems here you are doing some window selection based on best optical flow quality. Is this part necessary? Does it make big difference compared with random sampling a valid window inside the image region (without score comparison)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions