Update usage.py
Browse files3 unmodified lines45678910113 unmodified lines# Load the BLIP model and processorprocessor = BlipProcessor.from_pretrained("image2text")model = BlipForConditionalGeneration.from_pretrained('image2text')# Load the image you want to describeimage_path = sys.argv[1]raw_image = Image.open(image_path).convert('RGB')3 unmodified lines456789103 unmodified lines# Load the BLIP model and processorprocessor = BlipProcessor.from_pretrained("image2text")model = BlipForConditionalGeneration.from_pretrained('image2text' , use_safetensors=True)# Load the image you want to describeimage_path = sys.argv[1]raw_image = Image.open(image_path).convert('RGB')
usage.py+1-2