Open inata1024 opened 3 weeks ago
Hi, sorry for the late reply.
I ran the colab again and did not get any errors.
- Loading model ...
-> Loaded model
- Loading data
-> Loaded data
1/1 [==============================] - 20s 20s/step
- AP results: Sample 00001 , Pair p0 - p1
HAND - HAND : 0.99120075
HAND - SHOULDER : 0.68842834
SHOULDER - SHOULDER : 8.183505e-06
HAND - TORSO : 0.41137442
HAND - ELBOW : 0.00044612735
ELBOW - SHOULDER : 0.2381166
Have you run all the cells? The versions I have in the colab are:
Name: tensorflow Version: 2.17.0 License: Apache 2.0 Location: /usr/local/lib/python3.10/dist-packages Requires: absl-py, astunparse, flatbuffers, gast, google-pasta, grpcio, h5py, keras, libclang, ml-dtypes, numpy, opt-einsum, packaging, protobuf, requests, setuptools, six, tensorboard, tensorflow-io-gcs-filesystem, termcolor, typing-extensions, wrapt Required-by: dopamine_rl, retina-face, tf_keras
Name: keras Version: 3.4.1 License: Apache License 2.0 Location: /usr/local/lib/python3.10/dist-packages Requires: absl-py, h5py, ml-dtypes, namex, numpy, optree, packaging, rich Required-by: tensorflow
Name: deepdish Version: 0.3.7 Location: /usr/local/lib/python3.10/dist-packages Requires: numpy, scipy, tables
Name: retina-face Version: 0.0.17 Location: /usr/local/lib/python3.10/dist-packages Requires: gdown, numpy, opencv-python, Pillow, tensorflow
Name: detectron2 Version: 0.6 Location: /usr/local/lib/python3.10/dist-packages Requires: black, cloudpickle, fvcore, hydra-core, iopath, matplotlib, omegaconf, packaging, Pillow, pycocotools, tabulate, tensorboard, termcolor, tqdm, yacs Required-by: detectron2-densepose
Loading model ...
ValueError Traceback (most recent call last) in <cell line: 43>()
41 # ===========================================
42 print(" - Loading model ...")
---> 43 model = keras.models.load_model(model_filepath)
44 print(" -> Loaded model")
45
/usr/local/lib/python3.10/dist-packages/keras/src/saving/saving_api.py in load_model(filepath, custom_objects, compile, safe_mode) 197 ) 198 else: --> 199 raise ValueError( 200 f"File format not supported: filepath={filepath}. " 201 "Keras 3 only supports V3
.keras
files and "ValueError: File format not supported: filepath=/content/models/Proxemics_RGB_p0p1pair_base_Pose_pop1pair_base_cross. Keras 3 only supports V3
.keras
files and legacy H5 format files (.h5
extension). Note that the legacy SavedModel format is not supported byload_model()
in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, usekeras.layers.TFSMLayer(/content/models/Proxemics_RGB_p0p1pair_base_Pose_pop1pair_base_cross, call_endpoint='serving_default')
(note that yourcall_endpoint
might have a different name).I am glad to see this exciting project, but I got this error when running the last cell in Colab. How should I solve it? Thank you!