Comments (8)
What version of keras are you running ?
print(keras.__version__)
from keras-retinanet.
print keras.version
2.0.9
python 2.7.13
from keras-retinanet.
You can try this PR, or install keras 2.0.8. I suspect that will help with your issue.
from keras-retinanet.
Thanks, when i reinstall keras 2.0.8. that error was disappeared.
if i only want to run "Run detection on example" section, whether should i run "Train on data" section first?
from keras-retinanet.
If you load a model in your notebook then training isn't necessary.
from keras-retinanet.
Yes, i load a model "resnet50_coco_best_v1.0.0.h5".
but, when i run "Run detection on example" code, i encounter this error: "AttributeError: 'NoneType' object has no attribute 'shape'" at this line "image_batch, outputs = next(test_generator)". it seems that it didn't find any image. but my test_generator initialized successfully. please see below:
create a generator for testing data
test_generator = keras_retinanet.preprocessing.coco.CocoIterator(
'/home/wh/Downloads',
'val2017',
test_image_data_generator,
)
it outputs :
loading annotations into memory...
Done (t=0.54s)
creating index...
index created!
from keras-retinanet.
What is the structure of your COCO dataset? It should be:
/path/to/COCO/
/path/to/COCO/annotations/
/path/to/COCO/images/train2017/
/path/to/COCO/images/val2017/
from keras-retinanet.
Yeah. it works. thank you.
from keras-retinanet.
Related Issues (20)
- ERROR:gpu_init.cc(454)] Passthrough is not supported, GL is disabled, ANGLE is HOT 1
- Value Not Accepted: invalid literal HOT 1
- Extracting and saving mAP during training HOT 1
- Training Issue HOT 1
- when training yolov5 on custom dataset on spider show this error? how to resolve this error in pc? HOT 1
- COCO Large category and Anchor boxes generator HOT 1
- Error is displayed when running efficientnet: No module named 'efficientnet'
- Project dependencies may have API risk issues HOT 2
- InceptionV3 error HOT 1
- ModuleNotFoundError: No module named 'keras_retinanet.utils.compute_overlap' HOT 2
- 2023 Model
- Bad mAP results after long train HOT 1
- How to plot the metrics of my custom train
- Error occurred when finalizing GeneratorDataset iterator: FAILED_PRECONDITION: Python interpreter state is not initialized. The process may be terminated. HOT 3
- flag `--patience` (epochs to wait for no observable improvement for early stopping of training)
- How to convert model.h5 to ONNX ? HOT 1
- Error Code 2: Internal Error (ForeignNode does not support data-dependent shape for now.)
- How to get input_1 after training at the input of the model: [?, 512, 512, 3] ?
- train a model with a fixed input size HOT 3
- Not able to run my retinanet on gpu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-retinanet.