Skip to content

Commit

Permalink
Simplify randIndices
Browse files Browse the repository at this point in the history
  • Loading branch information
ButterscotchV committed Feb 6, 2025
1 parent b1448c6 commit 6091507
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ object PoseFrameIterator {
// Perform any setup that needs to be done before the current epoch
step.preEpoch?.accept(step)

var randIndices: IntArray? = null
if (config.randomizeFrameOrder) {
randIndices = randomIndices(step.maxFrameCount, step.random)
val randIndices = if (config.randomizeFrameOrder) {
randomIndices(step.maxFrameCount, step.random)
} else {
null
}

// Iterate over the frames using a cursor and an offset for comparing
Expand Down

0 comments on commit 6091507

Please sign in to comment.