Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running,I have an error:TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #25

Open
xueyuanyuan0410 opened this issue Oct 23, 2021 · 0 comments

Comments

@xueyuanyuan0410
Copy link

When running,I have an error:
Traceback (most recent call last):
File "example.py", line 8, in
model.train(ckpt_dir='ckpt')
File "/home/zy/ORGAN/ORGAN-master/organ/init.py", line 745, in train
self.pretrain()
File "/home/zy/ORGAN/ORGAN-master/organ/init.py", line 670, in pretrain
_, g_loss, g_pred = self.generator.pretrain_step(self.sess,batch)
File "/home/zy/ORGAN/ORGAN-master/organ/generator.py", line 210, in pretrain_step
outputs = session.run([self.pretrain_updates,self.pretrain_loss,self.g_predictions],
File "/home/zy/.conda/envs/zy_2/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 967, in run
result = self._run(None, fetches, feed_dict, options_ptr,
File "/home/zy/.conda/envs/zy_2/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1166, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)#np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/home/zy/.local/lib/python3.8/site-packages/numpy/core/_asarray.py", line 83, in asarray
return array(a, dtype, copy=False, order=order)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Any solutions?
Thank you for your answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant