Update README.md
#1
by
zkep
- opened
README.md
CHANGED
@@ -48,7 +48,7 @@ import torch
|
|
48 |
import numpy
|
49 |
|
50 |
from transformers import DetrFeatureExtractor, DetrForSegmentation
|
51 |
-
from transformers.
|
52 |
|
53 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
54 |
image = Image.open(requests.get(url, stream=True).raw)
|
|
|
48 |
import numpy
|
49 |
|
50 |
from transformers import DetrFeatureExtractor, DetrForSegmentation
|
51 |
+
from transformers.image_transforms import rgb_to_id
|
52 |
|
53 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
54 |
image = Image.open(requests.get(url, stream=True).raw)
|