Update README.md
Browse files
README.md
CHANGED
@@ -32,6 +32,7 @@ base_model:
|
|
32 |
|
33 |
If you just want to use this code, please refer to this sample below
|
34 |
```python
|
|
|
35 |
model_path = "DeepGlint-AI/MLCD-Seg" # or use your local path
|
36 |
mlcd_seg = AutoModel.from_pretrained(
|
37 |
model_path,
|
@@ -47,6 +48,10 @@ pred_mask = model.seg(seg_img, seg_prompt, tokenizer, force_seg=False)
|
|
47 |
|
48 |
If you want to use this code measurement dataset (e.g. refcoco), then you need to use the following method
|
49 |
```python
|
|
|
|
|
|
|
|
|
50 |
model_path = "DeepGlint-AI/MLCD-Seg" # or use your local path
|
51 |
mlcd_seg = AutoModel.from_pretrained(
|
52 |
model_path,
|
|
|
32 |
|
33 |
If you just want to use this code, please refer to this sample below
|
34 |
```python
|
35 |
+
|
36 |
model_path = "DeepGlint-AI/MLCD-Seg" # or use your local path
|
37 |
mlcd_seg = AutoModel.from_pretrained(
|
38 |
model_path,
|
|
|
48 |
|
49 |
If you want to use this code measurement dataset (e.g. refcoco), then you need to use the following method
|
50 |
```python
|
51 |
+
from transformers import AutoModel, AutoTokenizer
|
52 |
+
from PIL import Image
|
53 |
+
|
54 |
+
|
55 |
model_path = "DeepGlint-AI/MLCD-Seg" # or use your local path
|
56 |
mlcd_seg = AutoModel.from_pretrained(
|
57 |
model_path,
|