Traceback (most recent call last):
File "/home/lsa/Shared/Code/BASNet/train_softadapt_1.py", line 144, in
train(train_loader, model, optimizer, opt.epoch)
File "/home/lsa/Shared/Code/BASNet/train_softadapt_1.py", line 92, in train
adapt_weights = softadapt.get_component_weights(
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/softadapt/algorithms/loss_weighted_variant.py", line 65, in get_component_weights
self._compute_rates_of_change(loss_points,
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/softadapt/base/_softadapt_base_class.py", line 81, in _compute_rates_of_change
return _get_finite_difference(input_array = input_tensor.numpy(),
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/softadapt/utilities/_finite_difference.py", line 70, in _get_finite_difference
constants = coefficients(deriv=1, acc=order)["forward"]["coefficients"]
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/findiff/coefs.py", line 72, in coefficients
ret["center"] = calc_coefs(deriv, offsets, symbolic, analytic_inv)
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/findiff/coefs.py", line 146, in calc_coefs
matrix = _build_matrix(offsets, symbolic)
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/findiff/coefs.py", line 237, in _build_matrix
return np.array(A,dtype='float')
OverflowError: int too large to convert to float
Traceback (most recent call last): File "/home/lsa/Shared/Code/BASNet/train_softadapt_1.py", line 144, in
train(train_loader, model, optimizer, opt.epoch)
File "/home/lsa/Shared/Code/BASNet/train_softadapt_1.py", line 92, in train
adapt_weights = softadapt.get_component_weights(
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/softadapt/algorithms/loss_weighted_variant.py", line 65, in get_component_weights
self._compute_rates_of_change(loss_points,
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/softadapt/base/_softadapt_base_class.py", line 81, in _compute_rates_of_change
return _get_finite_difference(input_array = input_tensor.numpy(),
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/softadapt/utilities/_finite_difference.py", line 70, in _get_finite_difference
constants = coefficients(deriv=1, acc=order)["forward"]["coefficients"]
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/findiff/coefs.py", line 72, in coefficients
ret["center"] = calc_coefs(deriv, offsets, symbolic, analytic_inv)
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/findiff/coefs.py", line 146, in calc_coefs
matrix = _build_matrix(offsets, symbolic)
File "/home/lsa/.conda/envs/py310_torch222/lib/python3.10/site-packages/findiff/coefs.py", line 237, in _build_matrix
return np.array(A,dtype='float')
OverflowError: int too large to convert to float
Could you help me to solve this matter?