Skip to content

TypeError: Expected int32, but got None of type 'NoneType'. #3

@Abhipray04

Description

@Abhipray04

I am getting the following error whenever I am going to train the model:

TypeError: in user code:

File "C:\Users\Abhipray\AppData\Local\Programs\Python\Python37\lib\site-packages\object_detection\inputs.py", line 886, in transform_and_pad_input_data_fn  *
    tensor_dict = pad_input_data_to_static_shapes(
File "C:\Users\Abhipray\AppData\Local\Programs\Python\Python37\lib\site-packages\object_detection\inputs.py", line 319, in transform_input_data  *
    out_tensor_dict[flds_gt_kpt_weights] = (
File "C:\Users\Abhipray\AppData\Local\Programs\Python\Python37\lib\site-packages\object_detection\core\keypoint_ops.py", line 349, in keypoint_weights_from_visibilities  *
    per_keypoint_weight_mult = tf.ones((1, num_keypoints,), dtype=tf.float32)

TypeError: Expected int32, but got None of type 'NoneType'.

@prabhakar-sivanesan I noticed that you have encountered with similar error; how did you address this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions