-
Notifications
You must be signed in to change notification settings - Fork 43
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
我想训练自己的模型但是报错了 #20
Comments
我现在不用TensorFlow了,你可以用我最新写的这个代码:https://github.com/calmisential/DeepLearning.pytorch,里面有SSD算法 |
|
SSD的配置文件是: |
如果我使用的是512*512的图是直接改ssd_ cfg的尺寸就可以了嘛 |
输入只能是300*300,SSD512的网络结构与SSD300不一样,后续我有时间会把SSD512加上去 |
好的,谢谢 |
我更新了代码,现在可以输入512*512尺寸的图片了 |
你有git push吗?为什么我没看到有更改呢? |
这是commit |
我想训练512的模型,把尺寸改了但是有如下错误
2023-05-02 13:07:23.003633: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype string and shape [1]
[[{{node Placeholder/_0}}]]
2023-05-02 13:07:23.003876: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype string and shape [1]
[[{{node Placeholder/_0}}]]
Traceback (most recent call last):
File "/pfs/data5/home/kit/wbk/ea7309/ssd512_py3.8/TensorFlow2.0_SSD/train.py", line 94, in
main()
File "/pfs/data5/home/kit/wbk/ea7309/ssd512_py3.8/TensorFlow2.0_SSD/train.py", line 52, in main
loss_l, loss_c = loss_fn(y_true=labels, y_pred=predictions)
File "/pfs/data5/home/kit/wbk/ea7309/ssd512_py3.8/TensorFlow2.0_SSD/core/loss.py", line 46, in call
pos_idx = tf.broadcast_to(pos_idx, shape=loc_data.shape)
File "/opt/bwhpc/common/jupyter/tensorflow/2023-03-24/lib/python3.9/site-packages/tensorflow/python/ops/gen_array_ops.py", line 864, in broadcast_to
return broadcast_to_eager_fallback(
File "/opt/bwhpc/common/jupyter/tensorflow/2023-03-24/lib/python3.9/site-packages/tensorflow/python/ops/gen_array_ops.py", line 910, in broadcast_to_eager_fallback
_result = _execute.execute(b"BroadcastTo", 1, inputs=_inputs_flat,
File "/opt/bwhpc/common/jupyter/tensorflow/2023-03-24/lib/python3.9/site-packages/tensorflow/python/eager/execute.py", line 52, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node _wrapped__BroadcastTo_device/job:localhost/replica:0/task:0/device:GPU:0}} Incompatible shapes: [8,8732,1] vs. [8,24656,4] [Op:BroadcastTo]
The text was updated successfully, but these errors were encountered: