ngeorgis / ca-fire-detector Goto Github PK
View Code? Open in Web Editor NEWWildfire Detection enabled camera using the NVIDIA Jetson TX2
Wildfire Detection enabled camera using the NVIDIA Jetson TX2
Hi, I follow the fire-detection-jetson-save-ca.ipynb, and when I run to the line:
hist = model.fit(train_tensors, train_targets, batch_size=64, epochs=10,
validation_data=(valid_tensors, valid_targets), callbacks=[checkpointer, tbCallback],
verbose=2) #, shuffle=True)
It reports the error as follows:
Train on 535 samples, validate on 87 samples
Epoch 1/10
- 18s - loss: 2.6562 - acc: 0.8299 - val_loss: 2.7790 - val_acc: 0.8276
Epoch 00001: val_loss improved from inf to 2.77898, saving model to firemodel.weights.best.hdf5
Traceback (most recent call last):
File "keras_fire.py", line 103, in <module>
verbose=2)
File "/usr/lib64/python2.7/site-packages/keras/engine/training.py", line 1042, in fit
validation_steps=validation_steps)
File "/usr/lib64/python2.7/site-packages/keras/engine/training_arrays.py", line 219, in fit_loop
callbacks.on_epoch_end(epoch, epoch_logs)
File "/usr/lib64/python2.7/site-packages/keras/callbacks.py", line 77, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "/usr/lib64/python2.7/site-packages/keras/callbacks.py", line 444, in on_epoch_end
self.model.save(filepath, overwrite=True)
File "/usr/lib64/python2.7/site-packages/keras/engine/network.py", line 1104, in save
save_model(self, filepath, overwrite, include_optimizer)
File "/usr/lib64/python2.7/site-packages/keras/engine/saving.py", line 122, in save_model
save_weights_to_hdf5_group(model_weights_group, model_layers)
File "/usr/lib64/python2.7/site-packages/keras/engine/saving.py", line 457, in save_weights_to_hdf5_group
save_attributes_to_hdf5_group(g, 'weight_names', weight_names)
File "/usr/lib64/python2.7/site-packages/keras/engine/saving.py", line 409, in save_attributes_to_hdf5_group
group.attrs[name] = data
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/usr/lib64/python2.7/site-packages/h5py/_hl/attrs.py", line 95, in __setitem__
self.create(name, data=value, dtype=base.guess_dtype(value))
File "/usr/lib64/python2.7/site-packages/h5py/_hl/attrs.py", line 180, in create
space = h5s.create_simple(shape)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5s.pyx", line 101, in h5py.h5s.create_simple
ValueError: Zero sized dimension for non-unlimited dimension (zero sized dimension for non-unlimited dimension)
Could you help me with this error and give me some suggestions? Many thanks!
if you add a Dropout layer fails to create uff
x = base_model.output
x = GlobalAveragePooling2D()(x)
x = Dropout(0.45)(x)
predictions = Dense(num_classes, activation='softmax')(x)
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.