Skip to content
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

error when run grap_det.py #22

Open
dingshenglan opened this issue Jul 23, 2018 · 10 comments
Open

error when run grap_det.py #22

dingshenglan opened this issue Jul 23, 2018 · 10 comments

Comments

@dingshenglan
Copy link

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.'
)

@lx-onism
Copy link

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

@jinhuan-hit
Copy link

jinhuan-hit commented Mar 23, 2019

@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

@le-wei
Copy link

le-wei commented Nov 13, 2020

I cannot download the pre-training weights now, can you share a copy with me. thank you very much. lvlvlup@163.com
@lx-onism
@jinhuan-hit

@SpaceHan
Copy link

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

@zhoumo1121
Copy link

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
Copy link

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
Copy link

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

Has the problem been solved?

@zhoumo1121
Copy link

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
Copy link

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?

@Shaoli7
Copy link

Shaoli7 commented Oct 31, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants