Open vincentkk6356 opened 4 weeks ago
This function isn't looping through all the images. It stops once it finds an image with a width greater than 128 pixels. The reasoning behind this is that longer images help ensure more stable performance, as mentioned in Section I of our paper.
https://github.com/dailenson/One-DM/blob/bc705c0842a13ffabd8deaeda8bfef97bbbd50b4/data_loader/loader.py#L203-L217
Why is this function looping all the images instead of just picking one? It slows down the inference by quite a lot.