update image path
Browse files
README.md
CHANGED
|
@@ -77,7 +77,7 @@ messages = [
|
|
| 77 |
"content": [
|
| 78 |
{
|
| 79 |
"type": "image",
|
| 80 |
-
"image": "https://
|
| 81 |
},
|
| 82 |
{"type": "text", "text": "Write an example findings section for the CXR. Please reason step by step, and put your final answer within \\boxed{{}}."},
|
| 83 |
],
|
|
@@ -91,7 +91,7 @@ messages = [
|
|
| 91 |
# "content": [
|
| 92 |
# {
|
| 93 |
# "type": "image",
|
| 94 |
-
# "image": "https://
|
| 95 |
# },
|
| 96 |
# {"type": "text", "text": "Write an example findings section for the CXR."},
|
| 97 |
# ],
|
|
@@ -131,8 +131,8 @@ messages = [
|
|
| 131 |
{
|
| 132 |
"role": "user",
|
| 133 |
"content": [
|
| 134 |
-
{"type": "image", "image": "https://
|
| 135 |
-
{"type": "image", "image": "https://
|
| 136 |
{"type": "text", "text": "Write an example findings section for the CXR. Please reason step by step, and put your final answer within \\boxed{{}}."},
|
| 137 |
],
|
| 138 |
}
|
|
@@ -153,7 +153,7 @@ inputs = processor(
|
|
| 153 |
inputs = inputs.to("cuda")
|
| 154 |
|
| 155 |
# Inference
|
| 156 |
-
generated_ids = model.generate(**inputs, max_new_tokens=
|
| 157 |
generated_ids_trimmed = [
|
| 158 |
out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
|
| 159 |
]
|
|
|
|
| 77 |
"content": [
|
| 78 |
{
|
| 79 |
"type": "image",
|
| 80 |
+
"image": "https://raw.githubusercontent.com/YBZh/CheXOne/main/asset/cxr.jpg",
|
| 81 |
},
|
| 82 |
{"type": "text", "text": "Write an example findings section for the CXR. Please reason step by step, and put your final answer within \\boxed{{}}."},
|
| 83 |
],
|
|
|
|
| 91 |
# "content": [
|
| 92 |
# {
|
| 93 |
# "type": "image",
|
| 94 |
+
# "image": "https://raw.githubusercontent.com/YBZh/CheXOne/main/asset/cxr.jpg",
|
| 95 |
# },
|
| 96 |
# {"type": "text", "text": "Write an example findings section for the CXR."},
|
| 97 |
# ],
|
|
|
|
| 131 |
{
|
| 132 |
"role": "user",
|
| 133 |
"content": [
|
| 134 |
+
{"type": "image", "image": "https://raw.githubusercontent.com/YBZh/CheXOne/main/asset/cxr.jpg"},
|
| 135 |
+
{"type": "image", "image": "https://raw.githubusercontent.com/YBZh/CheXOne/main/asset/cxr_lateral.jpg"},
|
| 136 |
{"type": "text", "text": "Write an example findings section for the CXR. Please reason step by step, and put your final answer within \\boxed{{}}."},
|
| 137 |
],
|
| 138 |
}
|
|
|
|
| 153 |
inputs = inputs.to("cuda")
|
| 154 |
|
| 155 |
# Inference
|
| 156 |
+
generated_ids = model.generate(**inputs, max_new_tokens=1024)
|
| 157 |
generated_ids_trimmed = [
|
| 158 |
out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
|
| 159 |
]
|