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.

What is the functionality of "seq.to_deterministic()"?

See original GitHub issue

I notice that in the example of README.md, all examples related with augmenting landmark points have a following line of code. However, it seems that the examples that only augment images do not. seq_det = seq.to_deterministic() # call this for each batch again, NOT only once at the start Is it necessary only for landmarks augmentation?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
alejucommented, Apr 1, 2017

to_deterministic() removes the randomness from all augmenters and makes them deterministic (e.g. for each parameter that comes from a distribution, it samples one value from that distribution and then keeps reusing that value). That is useful for landmark augmentation, because you want to transform images and their landmarks in the same way, e.g. rotate an image and its landmarks by 30 degrees. If you don’t have landmarks, then you most likely don’t need the function.

5reactions
matthewmavcommented, Oct 18, 2018

I think it’s worth more documentation. Thank you, George

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deterministic Sequence - an overview | ScienceDirect Topics
QMCS, also known as quasi-random low discrepancy sequence (QRLDS), uses a deterministic sampling scheme to fill the space uniformly. QMCS quantifies the ...
Read more >
Deterministic and Nondeterministic Functions - SQL Server
This article identifies the determinism of built-in system functions and the effect on the deterministic property of user-defined functions ...
Read more >
Deterministic Tensorflow Part 2: Data Augmentation - jackd
This article focuses on methods of performing augmentation that is both deterministic (the same each time a program is run) and pre-emptible ( ......
Read more >
Random Sequence to Deterministic Sequence (based on the ...
At the moment, the game randomly generates a sequence each time. I'm a bit stuck as to how I can change this. Essentially,...
Read more >
Deterministic algorithm - Wikipedia
In computer science, a deterministic algorithm is an algorithm that, given a particular input, will always produce the same output, with the underlying...
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