alexanderkroner
commited on
Commit
•
828a4b7
1
Parent(s):
6bc49c1
Update README.md
Browse files
README.md
CHANGED
@@ -33,15 +33,12 @@ from huggingface_hub import snapshot_download
|
|
33 |
|
34 |
### Download the repo files
|
35 |
```python
|
36 |
-
hf_dir = snapshot_download(
|
37 |
-
repo_id="alexanderkroner/MSI-Net", allow_patterns=["*.pb", "*.jpg"]
|
38 |
-
)
|
39 |
```
|
40 |
|
41 |
### Load the saliency model
|
42 |
```python
|
43 |
-
model = tf.
|
44 |
-
model = model.signatures["serving_default"]
|
45 |
```
|
46 |
|
47 |
### Load the functions for preprocessing the input and postprocessing the output
|
|
|
33 |
|
34 |
### Download the repo files
|
35 |
```python
|
36 |
+
hf_dir = snapshot_download(repo_id="alexanderkroner/MSI-Net")
|
|
|
|
|
37 |
```
|
38 |
|
39 |
### Load the saliency model
|
40 |
```python
|
41 |
+
model = tf.keras.models.load_model(hf_dir)
|
|
|
42 |
```
|
43 |
|
44 |
### Load the functions for preprocessing the input and postprocessing the output
|