when loading the model from file:
model = PretainedRegistry.from_file(pcd_model[choice_model], mock_property={})
results in the following:
AttributeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_27968\3205507908.py in
----> 1 model = PretainedRegistry.from_file(pcd_model[choice_model])
~\Anaconda3\envs\torch3d\lib\site-packages\torch_points3d\applications\pretrained_api.py in from_file(path, weight_name, mock_property)
157 path_dir, name, weight_name if weight_name is not None else "latest", resume=False,
158 )
--> 159 dataset = checkpoint.data_config
160
161 if mock_property is not None:
~\Anaconda3\envs\torch3d\lib\site-packages\torch_points3d\metrics\model_checkpoint.py in data_config(self)
204 @Property
205 def data_config(self):
--> 206 return self._checkpoint.run_config.data
207
208 @Property
AttributeError: 'dict' object has no attribute 'data'
when loading the model from file:
model = PretainedRegistry.from_file(pcd_model[choice_model], mock_property={})
results in the following:
AttributeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_27968\3205507908.py in
----> 1 model = PretainedRegistry.from_file(pcd_model[choice_model])
~\Anaconda3\envs\torch3d\lib\site-packages\torch_points3d\applications\pretrained_api.py in from_file(path, weight_name, mock_property)
157 path_dir, name, weight_name if weight_name is not None else "latest", resume=False,
158 )
--> 159 dataset = checkpoint.data_config
160
161 if mock_property is not None:
~\Anaconda3\envs\torch3d\lib\site-packages\torch_points3d\metrics\model_checkpoint.py in data_config(self)
204 @Property
205 def data_config(self):
--> 206 return self._checkpoint.run_config.data
207
208 @Property
AttributeError: 'dict' object has no attribute 'data'