Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while getting face track embeddings #9

Open
ankandrew opened this issue Dec 25, 2024 · 0 comments
Open

Error while getting face track embeddings #9

ankandrew opened this issue Dec 25, 2024 · 0 comments

Comments

@ankandrew
Copy link

Could you paste the pip freeze to show the exact versions of libs used? I'm getting the following error when getting face track embeddings:

Traceback (most recent call last):
  File "/content/movie-asd/src/main.py", line 45, in <module>
    preprocessor.prep()
  File "/content/movie-asd/src/preprocessor.py", line 149, in prep
    self.videoPrep.run()
  File "/content/movie-asd/src/video_prep/video_preprocessing.py", line 225, in run
    self.getFaceTrackEmbeddings()
  File "/content/movie-asd/src/video_prep/video_preprocessing.py", line 80, in getFaceTrackEmbeddings
    self.faceTrackFeats = self.embeddingsExtracter.extractEmbeddings(faceTracksList)
  File "/content/movie-asd/src/video_prep/vggFace2_embeddings.py", line 54, in extractEmbeddings
    vggFace2Model = initialize_model()
  File "/content/movie-asd/src/../Keras_VGGFace2_ResNet50/src/wrapper.py", line 26, in initialize_model
    model_eval = model.Vggface2_ResNet50(mode='eval')
  File "/content/movie-asd/src/../Keras_VGGFace2_ResNet50/src/model.py", line 13, in Vggface2_ResNet50
    x = resnet.resnet50_backend(inputs)
  File "/content/movie-asd/src/../Keras_VGGFace2_ResNet50/src/resnet.py", line 131, in resnet50_backend
    x = Conv2D(64, (7, 7), strides=(2, 2),
  File "/usr/local/lib/python3.10/dist-packages/keras/src/layers/convolutional/conv2d.py", line 109, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/keras/src/layers/convolutional/base_conv.py", line 107, in __init__
    super().__init__(activity_regularizer=activity_regularizer, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/keras/src/layers/layer.py", line 268, in __init__
    Operation.__init__(self, dtype=dtype, name=name)
  File "/usr/local/lib/python3.10/dist-packages/keras/src/ops/operation.py", line 21, in __init__
    raise ValueError(
ValueError: Argument `name` must be a string and cannot contain character `/`. Received: name=conv1/7x7_s2 (of type <class 'str'>)

Colab to reproduce here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant