question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data Augmentation

See original GitHub issue

Hey!

Ich checked your data augmentation. In random rotate there is

#flow vectors must be rotated too! careful about Y flow which is upside down
        target_=np.array(target, copy=True)
        target[:,:,0] = np.cos(angle1_rad)*target_[:,:,0] + np.sin(angle1_rad)*target_[:,:,1]
        target[:,:,1] = -np.sin(angle1_rad)*target_[:,:,0] + np.cos(angle1_rad)*target_[:,:,1]

but in RandomCropRotate it is

#flow vectors must be rotated too!
        target_=np.array(target, copy=True)
        target[:,:,0] = np.cos(angle1_rad)*target_[:,:,0] - np.sin(angle1_rad)*target_[:,:,1]
        target[:,:,1] = np.sin(angle1_rad)*target_[:,:,0] + np.cos(angle1_rad)*target_[:,:,1]

I guess the first one is correct? Furthermore, if positive y flow is pointing downwards wouldn’t you have to change the translation as well? In RandomTranslate you do:

target[:,:,1]+= th

I guess if th is positive (you tranlsate upwards), your y flow would decrease?

What are your test scores on sintel (final, clean) or kitti? Many thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ClementPinardcommented, Mar 23, 2018

You can just delete this line in main.py : https://github.com/ClementPinard/FlowNetPytorch/blob/master/main.py#L144 All data augmentation is comprised in co_transform routines

0reactions
bkviecommented, Mar 22, 2018

Hi, any way to turn off data augmentation? I want to compare both methods (with/with out data pre-processing).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data augmentation - Wikipedia
Data augmentation in data analysis are techniques used to increase the amount of data by adding slightly modified copies of already existing data...
Read more >
Data augmentation | TensorFlow Core
This tutorial demonstrates data augmentation: a technique to increase the diversity of your training set by applying random (but realistic) transformations, ...
Read more >
The Essential Guide to Data Augmentation in Deep Learning
Data augmentation is a process of artificially increasing the amount of data by generating new data points from existing data. This includes adding...
Read more >
What is Data Augmentation? Techniques & Examples in 2023
Data augmentation is a set of techniques to artificially increase the amount of data by generating new data points from existing data.
Read more >
Data Augmentation in Python: Everything You Need to Know
Data augmentation is a technique that can be used to artificially expand the size of a training set by creating modified data from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found