Change organization to depth-anything
#1
by
						
pcuenq
	
							HF Staff
						- opened
							
					
    	
        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=" 
     | 
| 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(" 
     | 
| 75 | 
         
            -
            model = AutoModelForDepthEstimation.from_pretrained(" 
     | 
| 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")
         
     |