TIM commited on
Commit
feebc93
·
1 Parent(s): a1b4f6c

upload sample png and update readme

Browse files
Files changed (3) hide show
  1. .gitattributes +2 -0
  2. README.md +2 -5
  3. 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(pretrained_model_path, device_map="auto", torch_dtype=torch.bfloat16)
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

  • SHA256: 0e18b27e2531f700bf6c667c2c8a9c6e9470df890358838fbb61beed9fae7b63
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB