AVAuco / proxemicsnetplus

ProxemicsNet++
2 stars 0 forks source link

File format not supported, Keras 3 only supports V3 `.keras` files #1

Open inata1024 opened 3 weeks ago

inata1024 commented 3 weeks ago

/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 by load_model() in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use keras.layers.TFSMLayer(/content/models/Proxemics_RGB_p0p1pair_base_Pose_pop1pair_base_cross, call_endpoint='serving_default') (note that your call_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!

IsabelJimenez99 commented 6 days 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: