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 text was updated successfully, but these errors were encountered:
naveen-marthala
changed the title
what are the pupose two lines in create_input_files function in "master/utils.py"?
what are the pupose of these two lines in create_input_files function in "master/utils.py"?
Jul 10, 2022
naveen-marthala
changed the title
what are the pupose of these two lines in create_input_files function in "master/utils.py"?
what is the pupose of these two lines in create_input_files function in "master/utils.py"?
Jul 10, 2022
It's checking to make sure the images are not single channel (i.e. grayscale) and if so, creates an RGB images using the gray channel repeated (3) times.
I was going through the code and couldn't comprehend what was going on in these two lines of code:
what does the
if
check and what does the lines insideif
do?a-PyTorch-Tutorial-to-Image-Captioning/utils.py
Lines 116 to 118 in cc9c7e2
and what is being "assert"ed in this line?
a-PyTorch-Tutorial-to-Image-Captioning/utils.py
Line 139 in cc9c7e2
Any help is appreciated. Thanks.
The text was updated successfully, but these errors were encountered: