Both cloud_vl.py and finetune.py convert all PIL images to JPEG (quality 95) before base64 encoding. This lossy conversion is applied unconditionally, even for PNGs with transparency or images that are already in a suitable format.
Should preserve the original format when possible, or at minimum support PNG pass-through.
Both
cloud_vl.pyandfinetune.pyconvert all PIL images to JPEG (quality 95) before base64 encoding. This lossy conversion is applied unconditionally, even for PNGs with transparency or images that are already in a suitable format.Should preserve the original format when possible, or at minimum support PNG pass-through.