longqi-s / keras_cpn Goto Github PK
View Code? Open in Web Editor NEWCascaded Pyramid Network (CPN) based on keras (tensorflow backend)
License: MIT License
Cascaded Pyramid Network (CPN) based on keras (tensorflow backend)
License: MIT License
I reported the following error after deployment. Do you have any Suggestions to solve it?
Traceback (most recent call last):
File "/home/basic/workspace/Scheaven/05_cpn/keras_cpn/preprocessing/generator.py", line 28, in data_generator
imgs = data_res[0]
TypeError: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "train.py", line 69, in
layers='all')
File "/home/basic/workspace/Scheaven/05_cpn/keras_cpn/models/cpn.py", line 368, in train
use_multiprocessing=False,
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/site-packages/keras/engine/training.py", line 1418, in fit_generator
initial_epoch=initial_epoch)
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/site-packages/keras/engine/training_generator.py", line 181, in fit_generator
generator_output = next(output_generator)
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/site-packages/keras/utils/data_utils.py", line 709, in get
six.reraise(*sys.exc_info())
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/site-packages/keras/utils/data_utils.py", line 685, in get
inputs = self.queue.get(block=True).get()
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/basic/anaconda3/envs/py3_keras_cpn/lib/python3.6/site-packages/keras/utils/data_utils.py", line 626, in next_sample
return six.next(_SHARED_SEQUENCES[uid])
File "/home/basic/workspace/Scheaven/05_cpn/keras_cpn/preprocessing/generator.py", line 28, in data_generator
imgs = data_res[0]
TypeError: 'NoneType' object is not subscriptable
For others wondering, this repo uses TF1. I got it running using tf version 1.15.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.