data/conceptual_captions/generate_conceptual_caption.py [42:50]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    width, height = image.size
    if width > height:
        new_width = 352
        new_height = int(height * 352 / width)
    else:
        new_height = 352
        new_width = int(width * 352 / height)
    image = image.resize((new_width, new_height), PIL.Image.BILINEAR)
    image = image.convert("RGB")  # Make sure the image is RGB
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



data/ok-vqa/ok-vqa.py [37:45]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    width, height = image.size
    if width > height:
        new_width = 352
        new_height = int(height * 352 / width)
    else:
        new_height = 352
        new_width = int(width * 352 / height)
    image = image.resize((new_width, new_height), PIL.Image.BILINEAR)
    image = image.convert("RGB")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



