naurril / SUSTechPOINTS

3D Point Cloud Annotation Platform for Autonomous Driving
GNU General Public License v3.0
859 stars 220 forks source link

fusion 分支,前端代码yarn install后,想启动后端的server,使用python3 main.py后报错 #203

Open Hjyperfect opened 5 months ago

Hjyperfect commented 5 months ago

Traceback (most recent call last): File "/Users/hanjianyu/Baidu/SUSTechPOINTS/main.py", line 131, in from algos import pre_annotate as pre_annotate File "/Users/hanjianyu/Baidu/SUSTechPOINTS/algos/pre_annotate.py", line 19, in rotation_model = tf.keras.models.load_model(model_file) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/saving/saving_api.py", line 183, in load_model return legacy_h5_format.load_model_from_hdf5( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/legacy/saving/legacy_h5_format.py", line 133, in load_model_from_hdf5 model = saving_utils.model_from_config( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/legacy/saving/saving_utils.py", line 85, in model_from_config return serialization.deserialize_keras_object( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/legacy/saving/serialization.py", line 495, in deserialize_keras_object deserialized_obj = cls.from_config( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/models/model.py", line 517, in from_config return functional_from_config( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/models/functional.py", line 517, in functional_from_config process_layer(layer_data) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/models/functional.py", line 497, in process_layer layer = saving_utils.model_from_config( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/legacy/saving/saving_utils.py", line 85, in model_from_config return serialization.deserialize_keras_object( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/legacy/saving/serialization.py", line 473, in deserialize_keras_object (cls, cls_config) = class_and_config_for_serialized_keras_object( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/src/legacy/saving/serialization.py", line 354, in class_and_config_for_serialized_keras_object raise ValueError( ValueError: Unknown layer: 'TensorFlowOpLayer'. Please ensure you are using a keras.utils.custom_object_scope and that this object is included in the scope. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details.

naurril commented 5 months ago

应该是tf的版本不匹配了

weissha commented 4 months ago

tf应该使用什么版本? @naurril