回答編集履歴

1

2024/03/08 10:08

投稿

melian
melian

スコア19860

test CHANGED
@@ -1,18 +1,9 @@
1
+ 私:
1
- いくつかの issue が GitHub のリポジ上がっています
2
+ > ベスアンサー選びたので同じ内容を回答欄に投稿いただけますでしょうか?
2
3
 
3
- [Issue ImportError: cannot import name 'layer_utils' from 'keras.utils' · Issue #97 · rcmalli/keras-vggface · GitHub](https://github.com/rcmalli/keras-vggface/issues/97)
4
- [ModuleNotFoundError: No module named 'keras.engine.topology' · Issue #73 · rcmalli/keras-vggface · GitHub](https://github.com/rcmalli/keras-vggface/issues/73)
4
+ もしかして、この文言はコメントに自動的に挿入されるテンプレートなのでしょうか?
5
5
 
6
+ marus2024 さん:
6
- 原因としては Keras パッケージとの不整合で、Keras のバージョを下げることで解消するとのことです。また、GitHub 上では PR がマジされているのですが、PyPI のリポジリには反映されていないの、GitHub のリポジトリから VGGFace をインストールるとよいかと思います
7
+ > その文章については回答欄にあるテプレートです。
7
8
 
8
- ```python
9
+ なので、削除。
9
- !pip install keras==2.12
10
- !pip install Keras-Applications
11
- !pip install git+https://github.com/rcmalli/keras-vggface.git
12
-
13
- import os
14
- import cv2
15
- import numpy as np
16
- import keras
17
- from keras_vggface.vggface import VGGFace
18
- ```