In the preprocessing step, instead of text queries, you now need to use query_images:

inputs = processor(images=image_target, query_images=query_image, return_tensors="pt")

For predictions, instead of passing the inputs to the model, pass them to [~OwlViTForObjectDetection.image_guided_detection]. Draw the predictions
as before except now there are no labels.