hysts
commited on
Commit
·
37b01c5
1
Parent(s):
e0dd337
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,3 +2,27 @@
|
|
| 2 |
|
| 3 |
Images generated by the [TADNE model](https://huggingface.co/hysts/TADNE).
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
Images generated by the [TADNE model](https://huggingface.co/hysts/TADNE).
|
| 4 |
|
| 5 |
+
## Note
|
| 6 |
+
|
| 7 |
+
- `prediction_results/anime-face-detector`
|
| 8 |
+
- https://github.com/hysts/anime-face-detector
|
| 9 |
+
- YOLOv3 + HRNetV2
|
| 10 |
+
- `prediction_results/deepdanbooru`
|
| 11 |
+
- https://github.com/KichangKim/DeepDanbooru
|
| 12 |
+
- `model-resnet_custom_v3.h5`
|
| 13 |
+
- `prediction_results/deepdanbooru/intermediate_features`
|
| 14 |
+
- Output by the following model
|
| 15 |
+
- 4096-dim
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
def create_model() -> tf.keras.Model:
|
| 19 |
+
path = huggingface_hub.hf_hub_download('hysts/DeepDanbooru',
|
| 20 |
+
'model-resnet_custom_v3.h5',
|
| 21 |
+
use_auth_token=TOKEN)
|
| 22 |
+
model = tf.keras.models.load_model(path)
|
| 23 |
+
model = tf.keras.Model(model.input, model.layers[-4].output)
|
| 24 |
+
layer = tf.keras.layers.GlobalAveragePooling2D()
|
| 25 |
+
model = tf.keras.Sequential([model, layer])
|
| 26 |
+
return model
|
| 27 |
+
```
|
| 28 |
+
|