GLPNFeatureExtractor deprecation

#1
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -34,7 +34,7 @@ fine-tuned versions on a task that interests you.
34
  Here is how to use this model:
35
 
36
  ```python
37
- from transformers import GLPNFeatureExtractor, GLPNForDepthEstimation
38
  import torch
39
  import numpy as np
40
  from PIL import Image
@@ -43,7 +43,7 @@ import requests
43
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
44
  image = Image.open(requests.get(url, stream=True).raw)
45
 
46
- feature_extractor = GLPNFeatureExtractor.from_pretrained("vinvino02/glpn-nyu")
47
  model = GLPNForDepthEstimation.from_pretrained("vinvino02/glpn-nyu")
48
 
49
  # prepare image for the model
 
34
  Here is how to use this model:
35
 
36
  ```python
37
+ from transformers import GLPNFeatureExtractor, GLPNImageProcessor
38
  import torch
39
  import numpy as np
40
  from PIL import Image
 
43
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
44
  image = Image.open(requests.get(url, stream=True).raw)
45
 
46
+ feature_extractor = GLPNImageProcessor.from_pretrained("vinvino02/glpn-nyu")
47
  model = GLPNForDepthEstimation.from_pretrained("vinvino02/glpn-nyu")
48
 
49
  # prepare image for the model