Skip to content

Commit

Permalink
revert patch
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise authored Jan 11, 2024
1 parent f45aff8 commit 89e930c
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,32 +657,16 @@ int main(int argc, char** argv)

bool rife_v2 = false;
bool rife_v4 = false;

if (model.find(PATHSTR("rife-v2")) != path_t::npos)
{
// fine
rife_v2 = true;
}
else if (model.find(PATHSTR("rife-v3.6")) != path_t::npos)
{

rife_v4 = true;

}
else if (model.find(PATHSTR("rife-v3.9")) != path_t::npos)
{

rife_v4 = true;

}
else if (model.find(PATHSTR("rife-v3")) != path_t::npos)
{

// fine
rife_v2 = true;


}

else if (model.find(PATHSTR("rife-v4")) != path_t::npos)
{
// fine
Expand Down Expand Up @@ -726,7 +710,7 @@ int main(int argc, char** argv)
output_files.resize(numframe);
timesteps.resize(numframe);

double scale = (double)(count - 1.0) / (numframe - 1.0);
double scale = (double)count / numframe;
for (int i=0; i<numframe; i++)
{
// TODO provide option to control timestep interpolate method
Expand Down

2 comments on commit 89e930c

@2blackbar
Copy link

@2blackbar 2blackbar commented on 89e930c Jan 26, 2024

Choose a reason for hiding this comment

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

this comit reintroduces bug that creates a clones of last frame , the more interpolation inbetweens you do the more clones you get

@TNTwise
Copy link
Owner Author

@TNTwise TNTwise commented on 89e930c Feb 5, 2024

Choose a reason for hiding this comment

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

Yes, I did this because of my apps transition detection slowly going off-sync. The added frames at the end is not a bug, it is to make sure the time is synced.

Please sign in to comment.