root@autodl-container-a53a4d9718-aacfe17b:~/autodl-tmp/detr/util# python plot_utils.py
plot_utils.py::plot_logs info: logs param expects a list argument, converted to list[Path].
/root/autodl-tmp/detr/util/plot_utils.py:65: FutureWarning: DataFrame.interpolate with object dtype is deprecated and will raise in a future version. Call obj.infer_objects(copy=False) before interpolating instead.
df.interpolate().ewm(com=ewm_col).mean().plot(
TypeError: float() argument must be a string or a real number, not 'list'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/window/rolling.py", line 371, in _prep_values
values = ensure_float64(values)
^^^^^^^^^^^^^^^^^^^^^^
File "pandas/_libs/algos_common_helper.pxi", line 42, in pandas._libs.algos.ensure_float64
ValueError: setting an array element with a sequence.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/window/rolling.py", line 489, in _apply_columnwise
arr = self._prep_values(arr)
^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/window/rolling.py", line 373, in _prep_values
raise TypeError(f"cannot handle this type -> {values.dtype}") from err
TypeError: cannot handle this type -> object
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/autodl-tmp/detr/util/plot_utils.py", line 113, in <module>
plot_logs(logs=Path('../outputs/detrcss03/'),fields=('class_error', 'loss_bbox_unscaled', 'mAP'), ewm_col=0, log_name='log.txt')
File "/root/autodl-tmp/detr/util/plot_utils.py", line 65, in plot_logs
df.interpolate().ewm(com=ewm_col).mean().plot(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/window/ewm.py", line 565, in mean
return self._apply(window_func, name="mean", numeric_only=numeric_only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/window/rolling.py", line 619, in _apply
return self._apply_columnwise(homogeneous_func, name, numeric_only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/window/rolling.py", line 491, in _apply_columnwise
raise DataError(
pandas.errors.DataError: Cannot aggregate non-numeric type: object