You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The render_test_evaluation() function in train_nvfi() writes generated images to disk with files names r_some_number.png where the some_number indicates the position of the corresponding target in all_targets. However, the read_images_in_dir() function sorts these images by their filenames as strings and not numbers, and hence there is a mismatch between the ordering of generated examples and targets.
This shouldn't be impactful if there are fewer than 1000 images since the images have up to three zeros prepended to their index in the corresponding filename.
The fix is simple: in the read_images_in_dir() function in utils/metrics.py, one must replace
The text was updated successfully, but these errors were encountered:
tristanengst
changed the title
Bug in model evaluation—datasets with more than 1000 images have very low PSNRs
Bug in model evaluation—datasets with more than 1000 images have very low PSNRs. Easy fix.
May 13, 2024
The
render_test_evaluation()
function intrain_nvfi()
writes generated images to disk with files namesr_some_number.png
where thesome_number
indicates the position of the corresponding target inall_targets
. However, theread_images_in_dir()
function sorts these images by their filenames as strings and not numbers, and hence there is a mismatch between the ordering of generated examples and targets.This shouldn't be impactful if there are fewer than 1000 images since the images have up to three zeros prepended to their index in the corresponding filename.
The fix is simple: in the
read_images_in_dir()
function inutils/metrics.py
, one must replacewith
The text was updated successfully, but these errors were encountered: