Open grst opened 6 years ago
Hi,
could you please publish the versions of the python packages you're using (e.g. using pip freeze)?
pip freeze
I fail to run the minimal example python train.py -i train.npz -t test.npz and I suspect that this is due to incompatible python packages.
python train.py -i train.npz -t test.npz
Cheers, Gregor
btw, here is the actual error message:
venv/bin/python train.py -i ./data/train.npz -t ./data/test.npz Loading data... Compilation model 1 /home/sturm/repos/uni/subcellular_localization/venv/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py:768: UserWarning: MRG_RandomStreams Can't determine #streams from size (Subtensor{:2:}.0), guessing 60*256 nstreams = self.n_streams(size) Traceback (most recent call last): File "train.py", line 76, in <module> train_fn, val_fn, network_out = neural_network(batch_size, n_hid, n_feat, n_class, lr, drop_per, drop_hid, n_filt) File "/home/sturm/repos/uni/subcellular_localization/model.py", line 93, in neural_network prediction = lasagne.layers.get_output(l_out, inputs={l_in: input_var, l_mask: mask_var}, deterministic=False) File "/home/sturm/repos/uni/subcellular_localization/venv/lib/python2.7/site-packages/lasagne/layers/helper.py", line 185, in get_output all_outputs[layer] = layer.get_output_for(layer_inputs, **kwargs) File "/home/sturm/repos/uni/subcellular_localization/utils.py", line 99, in get_output_for mask = self._srng.binomial(input_shape[:2], p=retain_prob, dtype=input.dtype) File "/home/sturm/repos/uni/subcellular_localization/venv/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 812, in binomial x = self.uniform(size=size, nstreams=nstreams) File "/home/sturm/repos/uni/subcellular_localization/venv/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 795, in uniform ndim, dtype, size)) File "/home/sturm/repos/uni/subcellular_localization/venv/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 191, in new ndim = get_vector_length(v_size) File "/home/sturm/repos/uni/subcellular_localization/venv/lib/python2.7/site-packages/theano/tensor/basic.py", line 3734, in get_vector_length raise ValueError("length not known") ValueError: length not known
Hi,
could you please publish the versions of the python packages you're using (e.g. using
pip freeze
)?I fail to run the minimal example
python train.py -i train.npz -t test.npz
and I suspect that this is due to incompatible python packages.Cheers, Gregor
btw, here is the actual error message: