IMvision12 commited on
Commit
99d681c
·
verified ·
1 Parent(s): b650556

Update quick start to the current SAM API

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -43,11 +43,11 @@ import numpy as np
43
  from PIL import Image
44
  from kerasformers.models.sam2 import (
45
  SAM2PromptableSegment,
46
- SAM2ImageProcessorWithPrompts,
47
  )
48
 
49
  model = SAM2PromptableSegment.from_weights("kerasformers/sam2_hiera_base_plus")
50
- processor = SAM2ImageProcessorWithPrompts()
51
 
52
  image = Image.open("your_image.jpg").convert("RGB")
53
  inputs = processor(
 
43
  from PIL import Image
44
  from kerasformers.models.sam2 import (
45
  SAM2PromptableSegment,
46
+ SAM2Processor,
47
  )
48
 
49
  model = SAM2PromptableSegment.from_weights("kerasformers/sam2_hiera_base_plus")
50
+ processor = SAM2Processor.from_weights("kerasformers/sam2_hiera_base_plus")
51
 
52
  image = Image.open("your_image.jpg").convert("RGB")
53
  inputs = processor(