Update README
Browse files
README.md
CHANGED
@@ -100,9 +100,6 @@ wget https://huggingface.co/briaai/RMBG-1.4/resolve/main/requirements.txt && pip
|
|
100 |
|
101 |
## Usage
|
102 |
|
103 |
-
```python
|
104 |
-
# How to use
|
105 |
-
|
106 |
either load the model
|
107 |
```python
|
108 |
from transformers import AutoModelForImageSegmentation
|
@@ -121,6 +118,5 @@ pipe("image_path",out_name="myout.png") # applies mask and saves the extracted i
|
|
121 |
for the pipeline you can use the following parameters :
|
122 |
* `model_input_size` : default to [1024,1024]
|
123 |
* `out_name` : if specified it will use the numpy mask to extract the image and save it using the `out_name`
|
124 |
-
* `preprocess_image` :
|
125 |
-
* `postprocess_image` :
|
126 |
-
```
|
|
|
100 |
|
101 |
## Usage
|
102 |
|
|
|
|
|
|
|
103 |
either load the model
|
104 |
```python
|
105 |
from transformers import AutoModelForImageSegmentation
|
|
|
118 |
for the pipeline you can use the following parameters :
|
119 |
* `model_input_size` : default to [1024,1024]
|
120 |
* `out_name` : if specified it will use the numpy mask to extract the image and save it using the `out_name`
|
121 |
+
* `preprocess_image` : method for preprocessing images
|
122 |
+
* `postprocess_image` : method for postprocessing images
|
|