Update README.md
Browse files
README.md
CHANGED
@@ -40,10 +40,13 @@ As of now to use the model you have to install the [PerceptNet repo](https://git
|
|
40 |
|
41 |
```python
|
42 |
from perceptnet.networks import PerceptNet
|
|
|
43 |
|
44 |
weights_path = get_file(fname='perceptnet_rgb.h5',
|
45 |
-
origin='https://huggingface.co/Jorgvt/PerceptNet/
|
46 |
model = PerceptNet(kernel_initializer='ones', gdn_kernel_size=1, learnable_undersampling=False)
|
47 |
model.build(input_shape=(None, 384, 512, 3))
|
48 |
model.load_weights(weights_path)
|
49 |
-
```
|
|
|
|
|
|
40 |
|
41 |
```python
|
42 |
from perceptnet.networks import PerceptNet
|
43 |
+
from tensorflow.keras.utils import get_file
|
44 |
|
45 |
weights_path = get_file(fname='perceptnet_rgb.h5',
|
46 |
+
origin='https://huggingface.co/Jorgvt/PerceptNet/resolve/main/tf_model.h5')
|
47 |
model = PerceptNet(kernel_initializer='ones', gdn_kernel_size=1, learnable_undersampling=False)
|
48 |
model.build(input_shape=(None, 384, 512, 3))
|
49 |
model.load_weights(weights_path)
|
50 |
+
```
|
51 |
+
|
52 |
+
> PerceptNet requires `wandb` to be installed. It's something we're looking into.
|