Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make test results appear in order of input. #18

Open
chichun2002 opened this issue Nov 10, 2023 · 1 comment
Open

How to make test results appear in order of input. #18

chichun2002 opened this issue Nov 10, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@chichun2002
Copy link

Hi when testing the images get converted in a different order which makes it really hard to Convert the generated images into video format for example I want to read images as frames in order when testing results [1,2,10,11,21,23] rather than [1,10,11,2,21,23] which is the current order being used, is there any configs to stop this ?

@usert5432
Copy link
Collaborator

Hi @chichun2002,

Just to double check, are you generating images with a translate_images.py script?

If yes, then one can try to preserve the image order by modifying the file names:

path = os.path.join(savedir, name, f'sample_{sample_index}')

Simply change that line to:

    path  = os.path.join(savedir, name, f'sample_{sample_index:05d}')

It will save images as [00001,00002,00010,00011,00021,00023] which should have the same order as [1,2,10,11,21,23]

@usert5432 usert5432 self-assigned this Nov 25, 2023
@usert5432 usert5432 added the question Further information is requested label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants