You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python op.py --dataset utk --regression global --experiment_setting coral --im_path UTKFace
But I have a problem with inhomogeneous part of sequence.
The full error text:
File "/home/vid/hdd/projects/PycharmProjects/MWR2/code/op.py", line 62, in <module>
global_regression(args, train_data, test_data, sampling=sampling, sample_rate=sample_rate)
File "/home/vid/hdd/projects/PycharmProjects/MWR2/code/Prediction.py", line 99, in global_regression
refer_idx, refer_idx_pair = select_reference_global_regression(train_data, pair_idx, np.array(loss_total), limit=1)
File "/home/vid/hdd/projects/PycharmProjects/MWR2/code/Utils.py", line 98, in select_reference_global_regression
y_1_idx_tmp, y_2_idx_tmp = idx[row], np.array(pair_idx)[idx[0]][column]
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6582,) + inhomogeneous part.
How to fix it?
The text was updated successfully, but these errors were encountered:
I tried to run op.py with the next command:
But I have a problem with inhomogeneous part of sequence.
The full error text:
How to fix it?
The text was updated successfully, but these errors were encountered: