IMvision12 commited on
Commit
dbbe156
·
verified ·
1 Parent(s): ab53dd3

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.sam import (
45
  SAMPromptableSegment,
46
- SAMImageProcessorWithPrompts,
47
  )
48
 
49
  model = SAMPromptableSegment.from_weights("kerasformers/sam_vit_huge")
50
- processor = SAMImageProcessorWithPrompts()
51
 
52
  image = Image.open("your_image.jpg").convert("RGB")
53
  inputs = processor(
 
43
  from PIL import Image
44
  from kerasformers.models.sam import (
45
  SAMPromptableSegment,
46
+ SAMProcessor,
47
  )
48
 
49
  model = SAMPromptableSegment.from_weights("kerasformers/sam_vit_huge")
50
+ processor = SAMProcessor.from_weights("kerasformers/sam_vit_huge")
51
 
52
  image = Image.open("your_image.jpg").convert("RGB")
53
  inputs = processor(