pcuenq HF staff commited on
Commit
b4769fd
1 Parent(s): 870a35c

Change organization to depth-anything

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -49,7 +49,7 @@ from PIL import Image
49
  import requests
50
 
51
  # load pipe
52
- pipe = pipeline(task="depth-estimation", model="pcuenq/Depth-Anything-V2-Small-hf")
53
 
54
  # load image
55
  url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
@@ -71,8 +71,8 @@ import requests
71
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
72
  image = Image.open(requests.get(url, stream=True).raw)
73
 
74
- image_processor = AutoImageProcessor.from_pretrained("pcuenq/Depth-Anything-V2-Small-hf")
75
- model = AutoModelForDepthEstimation.from_pretrained("pcuenq/Depth-Anything-V2-Small-hf")
76
 
77
  # prepare image for the model
78
  inputs = image_processor(images=image, return_tensors="pt")
 
49
  import requests
50
 
51
  # load pipe
52
+ pipe = pipeline(task="depth-estimation", model="depth-anything/Depth-Anything-V2-Small-hf")
53
 
54
  # load image
55
  url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
 
71
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
72
  image = Image.open(requests.get(url, stream=True).raw)
73
 
74
+ image_processor = AutoImageProcessor.from_pretrained("depth-anything/Depth-Anything-V2-Small-hf")
75
+ model = AutoModelForDepthEstimation.from_pretrained("depth-anything/Depth-Anything-V2-Small-hf")
76
 
77
  # prepare image for the model
78
  inputs = image_processor(images=image, return_tensors="pt")