IMvision12 commited on
Commit
1b4273a
·
verified ·
1 Parent(s): 76ea9eb

docs: load image processor via from_weights

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -42,7 +42,7 @@ from PIL import Image
42
  from kerasformers.models.depth_anything_v2 import DepthAnythingV2DepthEstimation, DepthAnythingV2ImageProcessor
43
 
44
  model = DepthAnythingV2DepthEstimation.from_weights("kerasformers/depth_anything_v2_base")
45
- processor = DepthAnythingV2ImageProcessor()
46
 
47
  image = Image.open("your_image.jpg").convert("RGB")
48
  output = model(processor(image)["pixel_values"], training=False)
 
42
  from kerasformers.models.depth_anything_v2 import DepthAnythingV2DepthEstimation, DepthAnythingV2ImageProcessor
43
 
44
  model = DepthAnythingV2DepthEstimation.from_weights("kerasformers/depth_anything_v2_base")
45
+ processor = DepthAnythingV2ImageProcessor.from_weights("kerasformers/depth_anything_v2_base")
46
 
47
  image = Image.open("your_image.jpg").convert("RGB")
48
  output = model(processor(image)["pixel_values"], training=False)