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
There is an error when I try to test training on TS1 and TS2. It seems like data_list[0].pairs and data_list[1].pairs can't be concatenated correctly:
$ python ufold_train.py --train_files TS1 TS2
#####Stage 1#####
Loading dataset: TS1
Loading dataset: TS2
Data Loading Done!!!
Traceback (most recent call last):
File "/data/RUDD/RUDD/2d-prediction/charlotte/UFold/ufold_train.py", line 220, in <module>
main()
File "/data/RUDD/RUDD/2d-prediction/charlotte/UFold/ufold_train.py", line 189, in main
train_merge = Dataset_FCN_merge(train_data_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/RUDD/RUDD/2d-prediction/charlotte/UFold/ufold/data_generator.py", line 612, in __init__
self.data = self.merge_data(data_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/RUDD/RUDD/2d-prediction/charlotte/UFold/ufold/data_generator.py", line 625, in merge_data
self.data2.pairs = np.concatenate((data_list[0].pairs,data_list[1].pairs),axis=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<__array_function__ internals>", line 200, in concatenate
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (60,) + inhomogeneous part.
Can this be resolved?
The text was updated successfully, but these errors were encountered:
The issue seems to stem from mismatched dimensions in the self.data_x and self.data_pairs attributes within the data generator class. This likely arises because the pairs arrays in data_list[0] and data_list[1] have different dimensions or structures, making them incompatible for concatenation.
To resolve this, I recommend examining the dimensions and structure of self.data_x and self.data_pairs in the two datasets (TS1 and TS2). Ensure that both datasets are preprocessed so their dimensions are aligned and compatible. You may need to modify the preprocessing pipeline or the merging logic to unify the data shapes.
We are currently revising this part of the code to enhance compatibility with inputs of varying dimensions. Hopefully, these updates will address such issues in future iterations.
There is an error when I try to test training on TS1 and TS2. It seems like data_list[0].pairs and data_list[1].pairs can't be concatenated correctly:
Can this be resolved?
The text was updated successfully, but these errors were encountered: