Update README.md
Browse files
README.md
CHANGED
|
@@ -22,8 +22,11 @@ Table of Contents:
|
|
| 22 |
## Load trained model
|
| 23 |
```python
|
| 24 |
import segmentation_models_pytorch as smp
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
```
|
| 28 |
|
| 29 |
## Model init parameters
|
|
|
|
| 22 |
## Load trained model
|
| 23 |
```python
|
| 24 |
import segmentation_models_pytorch as smp
|
| 25 |
+
import albumentations as A
|
| 26 |
|
| 27 |
+
hub_repo = "commaai/comma10k-segnet"
|
| 28 |
+
model = smp.from_pretrained(hub_repo)
|
| 29 |
+
transform = A.Compose.from_pretrained(hub_repo)
|
| 30 |
```
|
| 31 |
|
| 32 |
## Model init parameters
|