nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.24k stars 617 forks source link

Error when submitted result file in nuScenes Tracking Challenge #936

Closed xjturjc closed 1 year ago

xjturjc commented 1 year ago

This error happened after I submitted it to the EvalAI server: This is the Stderr file on the server:

**python3.8/site-packages/pandas/core/indexes/base.py:395: DeprecationWarning: np.bool is a deprecated alias for the builtin bool. To silence this warning, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations elif issubclass(data.dtype.type, np.bool) or is_bool_dtype(data): python3.8/site-packages/pandas/core/internals/construction.py:587: DeprecationWarning: np.object is a deprecated alias for the builtin object. To silence this warning, use object by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if dtype != object and dtype != np.object:

metrics_summary = nusc_eval.main() File “python3.8/site-packages/nuscenes/eval/tracking/evaluate.py”, line 204, in main metrics, metric_data_list = self.evaluate() File " python3.8/site-packages/nuscenes/eval/tracking/evaluate.py", line 135, in evaluate accumulate_class(class_name) File " python3.8/site-packages/nuscenes/eval/tracking/evaluate.py", line 131, in accumulate_class curr_md = currev.accumulate() File " python3.8/site-packages/nuscenes/eval/tracking/algo.py", line 140, in accumulate acc, = self.accumulate_threshold(threshold) File " python3.8/site-packages/nuscenes/eval/tracking/algo.py", line 292, in accumulate_threshold acc_merged = MOTAccumulatorCustom.merge_event_dataframes(accs) File " python3.8/site-packages/nuscenes/eval/tracking/mot.py", line 100, in merge_event_dataframes df = df.events File " python3.8/site-packages/nuscenes/eval/tracking/mot.py", line 61, in events self.cached_events_df = MOTAccumulatorCustom.new_event_dataframe_with_data(self._indices, self.events) File " python3.8/site-packages/nuscenes/eval/tracking/mot.py", line 37, in new_event_dataframe_with_data df = pd.DataFrame(events, index=idx, columns=[‘Type’, ‘OId’, ‘HId’, ‘D’]) File " python3.8/site-packages/pandas/core/frame.py", line 746, in init mgr = init_dict(data, index, columns, dtype=dtype) File " python3.8/site-packages/pandas/core/dtypes/cast.py", line 1175, in construct_1d_arraylike_from_scalar dtype=dtype.dtype AttributeError: type object ‘object’ has no attribute ‘dtype’**

Searching on the Internet, it is said that it is a pandas version problem, AttributeError: type object 'object' has no attribute 'dtype' with numpy 1.20.x and pandas versions 1.0.4 and earlier https://github.com/pandas-dev/pandas/issues/39520

From the log above, it can be seen that Numpy>=1.20, according to Trace:

df = pd.DataFrame(events, index=idx, columns=['Type', 'OId', 'HId', 'D']) File "python3.8/site-packages/pandas/core/frame.py", line 746, in init mgr = init_dict(data, index, columns, dtype=dtype) File "python3.8/site-packages/pandas/core/dtypes/cast.py", line 1175, in construct_1d_arraylike_from_scalar dtype=dtype.dtype

It can probably be determined that Pandas version<=1.0.4. So this question will be reported. I would like to ask if anyone who participated in the tracking challenges encountered this problem?

I submitted the test results of the original version of BevFusion on the Internet and reported 'cannot interpret attribute dtype of numpy.generic objects as a data type', which is also a problem with pandas and numpy versions https://github.com/numpy/numpy/issues/ 18355, So it shouldn't be a problem with the files of my algorithm I submitted

Did the evalai nuscenes tracking challenge update the environment recently?

@Ram81 @David_Novotny @Rishabh_Jain @rishabh @whyekit-motional My team name is VPF. Can you please have a look?

Thanks a lot!