TIM
commited on
Commit
·
feebc93
1
Parent(s):
a1b4f6c
upload sample png and update readme
Browse files- .gitattributes +2 -0
- README.md +2 -5
- sample.png +3 -0
.gitattributes
CHANGED
@@ -34,3 +34,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
38 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -56,13 +56,10 @@ from InfiMed import InfiMed
|
|
56 |
from PIL import Image
|
57 |
import torch
|
58 |
|
59 |
-
# Define the path to the pretrained checkpoint
|
60 |
-
pretrained_model_path = "."
|
61 |
-
|
62 |
# Load the model from the pretrained checkpoint
|
63 |
-
model = InfiMed.from_pretrained(
|
64 |
|
65 |
-
image_path = "" # Replace with the path to your image file
|
66 |
image = Image.open(image_path).convert("RGB") # Ensure the image is in RGB format
|
67 |
|
68 |
# Prepare input messages
|
|
|
56 |
from PIL import Image
|
57 |
import torch
|
58 |
|
|
|
|
|
|
|
59 |
# Load the model from the pretrained checkpoint
|
60 |
+
model = InfiMed.from_pretrained("InfiX-ai/InfiMed-Foundation-4B", device_map="auto", torch_dtype=torch.bfloat16)
|
61 |
|
62 |
+
image_path = "sample.png" # Replace with the path to your image file
|
63 |
image = Image.open(image_path).convert("RGB") # Ensure the image is in RGB format
|
64 |
|
65 |
# Prepare input messages
|
sample.png
ADDED
![]() |
Git LFS Details
|