danfenghong / IEEE_TGRS_MDL-RS

Danfeng Hong, Lianru Gao, Naoto Yokoya, Jing Yao, Jocelyn Chanussot, Qian Du, Bing Zhang. More Diverse Means Better: Multimodal Deep Learning Meets Remote Sensing Imagery Classification, IEEE TGRS, 2021, 59(5): 4340-4354.
102 stars 21 forks source link

One error happened when I run the En_De_fusion_FC.py. #1

Closed 1585231086 closed 4 years ago

1585231086 commented 4 years ago

Thanks for your open code, but when I run the En_De_fusion_FC.py, there is an error found...detail as follows:

Traceback (most recent call last):

File "xxxx\IEEE_TGRS_MDL-RS-master\MDL-RS_FC-Nets\En_de_fusion_FC.py", line 373, in parameters, val_acc, feature = train_mynetwork(HSI_TrSet, LiDAR_TrSet, HSI_TrSet, LiDAR_TrSet, HSI_TeSet, LiDAR_TeSet, Y_train, Y_test, 'MML')

File "xxxx\IEEE_TGRS_MDL-RS-master\MDL-RS_FC-Nets\En_de_fusion_FC.py", line 291, in train_mynetwork minibatches = random_mini_batches(x1_train_set, x2_train_set, x1_train_set_full, x2_train_set_full, y_train_set, minibatch_size, seed)

TypeError: random_mini_batches() takes 5 positional arguments but 7 were given

How to deal with the situation?

danfenghong commented 4 years ago

Hi,

Many thanks for helping us find the potential errors. We have fixed it and updated the codes in the Github page. Thanks again. Bests, Danfeng

1585231086 notifications@github.com 于2020年9月10日周四 下午3:57写道:

Thanks for your open code, but when I run the En_De_fusion_FC.py, there is an error found...detail as follows:

Traceback (most recent call last):

File "H:\Python-learning\IEEE_TGRS_MDL-RS-master\MDL-RS_FC-Nets\En_de_fusion_FC.py", line 373, in parameters, val_acc, feature = train_mynetwork(HSI_TrSet, LiDAR_TrSet, HSI_TrSet, LiDAR_TrSet, HSI_TeSet, LiDAR_TeSet, Y_train, Y_test, 'MML')

File "H:\Python-learning\IEEE_TGRS_MDL-RS-master\MDL-RS_FC-Nets\En_de_fusion_FC.py", line 291, in train_mynetwork minibatches = random_mini_batches(x1_train_set, x2_train_set, x1_train_set_full, x2_train_set_full, y_train_set, minibatch_size, seed)

TypeError: random_mini_batches() takes 5 positional arguments but 7 were given

How to due with the situation?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danfenghong/IEEE_TGRS_MDL-RS/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFL2GZUXZVTAFM2UZZ3CFCLSFDLK5ANCNFSM4RFDEKYQ .