robot-grasp-detection icon indicating copy to clipboard operation
robot-grasp-detection copied to clipboard

error when run grap_det.py

Open dingshenglan opened this issue 6 years ago • 10 comments

when I run grasp_det.py, I met this error as follow: ValueError: Tensor conversion requested dtype int32 for Tensor with dtype float64: 'Tensor("truediv:0", shape=(), dtype=float64, device=/device:CPU:0)' How can I solve this error?????

I had used "build_cgd_dataset.py" to get tfrecords.

I has made small changes in "grasp_det.py" as follow:

TRAIN_FILE = r'F:\RGB-D_grasp_datasets\data01\01\train-cgd' VALIDATE_FILE = r'F:\RGB-D_grasp_datasets\data01\01\validation-cgd'

parser.add_argument( '--data_dir', type=str, default=r'F:\RGB-D_grasp_datasets\data01\01', help='Directory with training data.' ) parser.add_argument( '--log_dir', type=str, default=r'F:\robot-grasp-detection-master', help='Tensorboard log_dir.' parser.add_argument( '--model_path', type=str, default=r'F:\robot-grasp-detection-master\models\grasp\m4.ckpt', help='Variables for the model.' )

dingshenglan avatar Jul 23 '18 02:07 dingshenglan

I met the same problem and had no solution.Have you solved the question? I would like to get some help!!!

lx-onism avatar Sep 19 '18 11:09 lx-onism

@dingshenglan @lx-onism You can use them by giving them as arguments,check issue #5,for example: ./imagenet_classifier.py --batch_size=128 --model_path=./models/imagenet/m1/m1.ckpt --train_or_validation=train

jinhuan-hit avatar Mar 23 '19 07:03 jinhuan-hit

I cannot download the pre-training weights now, can you share a copy with me. thank you very much. [email protected] @lx-onism @jinhuan-hit

le-wei avatar Nov 13 '20 07:11 le-wei

that's caused by the "/8" operation, I just defined a fixed maxvalue and skipepd the problem

SpaceHan avatar Nov 27 '20 08:11 SpaceHan

ValueError: Tensor conversion requested dtype int32 for Tensor with dtype float64: 'Tensor("truediv:0", shape=(), dtype=float64, device=/device:CPU:0)' May I ask how to solve this problem? Thanks, I've been working on it for a long time!

zhoumo1121 avatar Jul 02 '21 04:07 zhoumo1121

when I run grasp_det.py, I met this error as follow: ValueError: Tensor conversion requested dtype int32 for Tensor with dtype float64: 'Tensor("truediv:0", shape=(), dtype=float64, device=/device:CPU:0)' How can I solve this error?????

I had used "build_cgd_dataset.py" to get tfrecords.

I has made small changes in "grasp_det.py" as follow:

TRAIN_FILE = r'F:\RGB-D_grasp_datasets\data01\01\train-cgd' VALIDATE_FILE = r'F:\RGB-D_grasp_datasets\data01\01\validation-cgd'

parser.add_argument( '--data_dir', type=str, default=r'F:\RGB-D_grasp_datasets\data01\01', help='Directory with training data.' ) parser.add_argument( '--log_dir', type=str, default=r'F:\robot-grasp-detection-master', help='Tensorboard log_dir.' parser.add_argument( '--model_path', type=str, default=r'F:\robot-grasp-detection-master\models\grasp\m4.ckpt', help='Variables for the model.' )

when I run grasp_det.py, I met this error as follow: ValueError: Tensor conversion requested dtype int32 for Tensor with dtype float64: 'Tensor("truediv:0", shape=(), dtype=float64, device=/device:CPU:0)' How can I solve this error?????

I had used "build_cgd_dataset.py" to get tfrecords.

I has made small changes in "grasp_det.py" as follow:

TRAIN_FILE = r'F:\RGB-D_grasp_datasets\data01\01\train-cgd' VALIDATE_FILE = r'F:\RGB-D_grasp_datasets\data01\01\validation-cgd'

parser.add_argument( '--data_dir', type=str, default=r'F:\RGB-D_grasp_datasets\data01\01', help='Directory with training data.' ) parser.add_argument( '--log_dir', type=str, default=r'F:\robot-grasp-detection-master', help='Tensorboard log_dir.' parser.add_argument( '--model_path', type=str, default=r'F:\robot-grasp-detection-master\models\grasp\m4.ckpt', help='Variables for the model.' )

Has the problem been solved?

zhoumo1121 avatar Jul 05 '21 01:07 zhoumo1121

that's caused by the "/8" operation, I just defined a fixed maxvalue and skipepd the problem

Has the problem been solved?

zhoumo1121 avatar Jul 05 '21 01:07 zhoumo1121

I met the same problem and had no solution.Have you solved the question? I would like to get some help!!!

Has the problem been solved?

zhoumo1121 avatar Jul 05 '21 01:07 zhoumo1121

that's caused by the "/8" operation, I just defined a fixed maxvalue and skipepd the problem

Has the problem been solved?

What is your maximum value?

zhoumo1121 avatar Jul 09 '21 00:07 zhoumo1121

ValueError: Tensor conversion requested dtype int32 for Tensor with dtype float64: 'Tensor("truediv:0", shape=(), dtype=float64, device=/device:CPU:0)' May I ask how to solve this problem? Thanks, I've been working on it for a long time!

老哥,这个项目你跑通了吗,能加个qq交流下吗?644966953

Shaoli7 avatar Oct 31 '22 17:10 Shaoli7