Open AshwinUnnikrishnan opened 9 months ago
Enhanced the inference.py script to support image transformation for in-memory images.
Previously, the script only supported loading and transforming images from a file path. This enhancement allows users to transform images that have been uploaded or generated within their code, which is particularly useful when working with outputs from other models like super-resolution models.
Adding additional function transform_image.. so that users can use a loaded RGB image and transform it to the expected format of grounding dino prediction.