marrlab/Med-AL-SSL

TypeError: '<' not supported between instances of 'list' and 'int'

Closed this issue · 1 comments

Active learning sampling error:
Traceback (most recent call last): File "train.py", line 347, in <module> main(args=arguments) File "train.py", line 187, in main kwargs, current_labeled) File "/home/zongwei/liangyu/code/Med-AL-SSL/code/utils.py", line 471, in perform_sampling samples_indices) File "/home/zongwei/liangyu/code/Med-AL-SSL/code/utils.py", line 144, in postprocess_indices samples_indices = samples_indices[samples_indices < len(unlabeled_indices)] TypeError: '<' not supported between instances of 'list' and 'int'

samples_indices = np.array(samples_indices) solved the issue.