facebookresearch / ImageBind

ImageBind One Embedding Space to Bind Them All
Other
8.38k stars 771 forks source link

reformat: change init transform to out of loop #96

Closed pphuc25 closed 12 months ago

pphuc25 commented 1 year ago

Hi, I noticed that in this code, data_transform is being assigned multiple times unnecessarily within the loop. To eliminate redundant assignments, I have moved data_transform outside of the loop, reducing the need for it to be assigned multiple times. Now, it only needs to be assigned once.

Thank you for reviewing my pull request.