pierluigiferrari / ssd_keras

A Keras port of Single Shot MultiBox Detector
Apache License 2.0
1.86k stars 938 forks source link

Error: AttributeError: 'Conv2D' object has no attribute 'inbound_nodes' #354

Closed babak-abad closed 4 years ago

babak-abad commented 4 years ago

I'm programming using pycharm 2020 pro and python 3.8. I test different version of keras and python (more than 20 combination of them). In many of them I get error illustrated below. Does it relate to version of keras/tensorflow/python?

error:

AttributeError                            Traceback (most recent call last)

<ipython-input-82-e844c96e1751> in <module>
     17                     normalize_coords=normalize_coords,
     18                     subtract_mean=intensity_mean,
---> 19                     divide_by_stddev=intensity_range)
     20 
     21 # 2: Optional: Load some weights

E:\Projects\ssd_keras-master\models\keras_ssd7.py in build_model(image_size, n_classes, mode, l2_regularization, min_scale, max_scale, scales, aspect_ratios_global, aspect_ratios_per_layer, two_boxes_for_ar1, steps, offsets, clip_boxes, variances, coords, normalize_coords, subtract_mean, divide_by_stddev, swap_channels, confidence_thresh, iou_threshold, top_k, nms_max_output_size, return_predictor_sizes)
    335     anchors4 = AnchorBoxes(img_height, img_width, this_scale=scales[0], next_scale=scales[1], aspect_ratios=aspect_ratios[0],
    336                            two_boxes_for_ar1=two_boxes_for_ar1, this_steps=steps[0], this_offsets=offsets[0],
--> 337                            clip_boxes=clip_boxes, variances=variances, coords=coords, normalize_coords=normalize_coords, name='anchors4')(boxes4)
    338     anchors5 = AnchorBoxes(img_height, img_width, this_scale=scales[1], next_scale=scales[2], aspect_ratios=aspect_ratios[1],
    339                            two_boxes_for_ar1=two_boxes_for_ar1, this_steps=steps[1], this_offsets=offsets[1],

e:\projects\ssd_keras-master\venv\lib\site-packages\keras\engine\topology.py in __call__(self, inputs, **kwargs)

e:\projects\ssd_keras-master\venv\lib\site-packages\keras\engine\topology.py in _collect_previous_mask(input_tensors)

AttributeError: 'Conv2D' object has no attribute 'inbound_nodes'

what version of keras and tensorflow do you use for training? I mean exact numbers of version. Any help will be appreciated...

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.