Traceback (most recent call last):


 "train_demo.py", line 100, in <module>

framework.train(model, ckpt_dir="checkpoint", model_name=dataset_name + "_" + model.encoder + "_" + model.selector, max_epoch=60, gpu_nums=1)


 "/home/wohlg/itmo/OpenNRE_new/OpenNRE/nrekit/framework.py", line 141, in train

cur_model = model(self.train_data_loader, self.train_data_loader.batch_size // gpu_nums, self.train_data_loader.max_length)


 "train_demo.py", line 73, in __init__

self._loss = nrekit.network.classifier.softmax_cross_entropy(self._train_logit, self.label, self.rel_tot, weights_table=self.get_weights())


 "train_demo.py", line 89, in get_weights

_weights_table[self.train_data_loader.data_rel[i]] += 1.0 
IndexError: index 48 is out of bounds for axis 0 with size 3

Traceback (most recent call last):


 "./deepMedicRun", line 99, in <module>

deepMedicTrain.deepMedicTrainMain(absPathToTrainConf, absPathToCnnModelGivenInCmdLine, cnnInstanceLoaded, filenameAndPathWhereNewlyCreatedModelWasSaved)


 "/nobackup/s123656/notebooks/deepmedic/deepmedic/frontEndModules/deepMedicTrain.py", line 441, in deepMedicTrainMain

do_training(*trainSessionParameters.getTupleForCnnTraining())


 "/nobackup/s123656/notebooks/deepmedic/deepmedic/trainValidateTestVisualiseParallel.py", line 1304, in do_training

trainingAccuracyMonitorForEpoch)


 "/nobackup/s123656/notebooks/deepmedic/deepmedic/trainValidateTestVisualiseParallel.py", line 886, in doTrainOrValidationOnBatchesAndReturnMeanAccuraciesOfSubepoch

listWithCostMeanErrorAndRpRnTpTnForEachClassFromTraining = cnn3dInstance.cnnTrainModel(batch_i, vectorWithWeightsOfTheClassesForCostFunctionOfTraining)


 "/home/s123656/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py", line 898, in __call__

storage_map=getattr(self.fn, 'storage_map', None))


 "/home/s123656/anaconda2/lib/python2.7/site-packages/theano/gof/link.py", line 325, in raise_with_op

reraise(exc_type, exc_value, exc_trace)


 "/home/s123656/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py", line 884, in __call__

self.fn() if output_subset is None else\


 "/home/s123656/anaconda2/lib/python2.7/site-packages/theano/gof/op.py", line 872, in rval

r = p(n, [x[0] for x in i], o)


 "/home/s123656/anaconda2/lib/python2.7/site-packages/theano/tensor/subtensor.py", line 2173, in perform

out[0] = inputs[0].__getitem__(inputs[1:])
IndexError: index -2147483648 is out of bounds for axis 1 with size 2
