Update README.md
Browse files
README.md
CHANGED
@@ -44,7 +44,7 @@ processor = AutoProcessor.from_pretrained("AskUI/PTA-1", trust_remote_code=True)
|
|
44 |
task_prompt = "<OPEN_VOCABULARY_DETECTION>"
|
45 |
prompt = task_prompt + "description of the target element"
|
46 |
|
47 |
-
image = Image.open("path to screenshot")
|
48 |
|
49 |
inputs = processor(text=prompt, images=image, return_tensors="pt").to(device, torch_dtype)
|
50 |
|
|
|
44 |
task_prompt = "<OPEN_VOCABULARY_DETECTION>"
|
45 |
prompt = task_prompt + "description of the target element"
|
46 |
|
47 |
+
image = Image.open("path to screenshot").convert("RGB")
|
48 |
|
49 |
inputs = processor(text=prompt, images=image, return_tensors="pt").to(device, torch_dtype)
|
50 |
|