robocarstore / donkeycar-images

12 stars 2 forks source link

autodrive not working in jetson nano #11

Closed 0jeetparmar0 closed 10 months ago

0jeetparmar0 commented 10 months ago

WARNING:tensorflow:Model was constructed with shape (None, 120, 160, 3) for input Tensor("img_in_1:0", shape=(None, 120, 160, 3), dtype=float32), but it was called on an input with incompatible shape (None, 224, 224, 3). Model was constructed with shape (None, 120, 160, 3) for input Tensor("img_in_1:0", shape=(None, 120, 160, 3), dtype=float32), but it was called on an input with incompatible shape (None, 224, 224, 3).

Traceback (most recent call last): File "/home/nano/projects/donkeycar/donkeycar/vehicle.py", line 154, in start self.update_parts() File "/home/nano/projects/donkeycar/donkeycar/vehicle.py", line 202, in update_parts outputs = p.run(inputs) File "/home/nano/projects/donkeycar/donkeycar/parts/keras.py", line 90, in run return self.inference(norm_arr, other_arr) File "/home/nano/projects/donkeycar/donkeycar/parts/keras.py", line 306, in inference outputs = self.model.predict(img_arr) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py", line 130, in _method_wrapper return method(self, args, kwargs) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py", line 1599, in predict tmp_batch_outputs = predict_function(iterator) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 780, in call result = self._call(*args, *kwds) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 823, in _call self._initialize(args, kwds, add_initializers_to=initializers) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 697, in _initialize args, kwds)) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 2855, in _get_concrete_function_internal_garbage_collected graphfunction, , _ = self._maybe_define_function(args, kwargs) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 3213, in _maybe_define_function graph_function = self._create_graph_function(args, kwargs) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 3075, in _create_graph_function capture_by_value=self._capture_by_value), File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/framework/func_graph.py", line 986, in func_graph_from_py_func func_outputs = python_func(*func_args, *func_kwargs) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 600, in wrapped_fn return weak_wrapped_fn().wrapped(args, **kwds) File "/home/nano/env/lib/python3.6/site-packages/tensorflow/python/framework/func_graph.py", line 973, in wrapper raise e.ag_error_metadata.to_exception(e) ValueError: in user code:

/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:1462 predict_function  *
    return step_function(self, iterator)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:1452 step_function  **
    outputs = model.distribute_strategy.run(run_step, args=(data,))
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:1211 run
    return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2585 call_for_each_replica
    return self._call_for_each_replica(fn, args, kwargs)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2945 _call_for_each_replica
    return fn(*args, **kwargs)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:1445 run_step  **
    outputs = model.predict_step(data)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:1418 predict_step
    return self(x, training=False)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py:985 __call__
    outputs = call_fn(inputs, *args, **kwargs)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/functional.py:386 call
    inputs, training=training, mask=mask)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/functional.py:508 _run_internal_graph
    outputs = node.layer(*args, **kwargs)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py:976 __call__
    self.name)
/home/nano/env/lib/python3.6/site-packages/tensorflow/python/keras/engine/input_spec.py:216 assert_input_compatibility
    ' but received input with shape ' + str(shape))

ValueError: Input 0 of layer dense_1 is incompatible with the layer: expected axis -1 of input shape to have value 6656 but received input with shape [None, 28224]
sctse999 commented 10 months ago

Sorry, waveshare is not supported. Please consult their support.