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

Eager Few Shot Object Detection Colab Example code is not working #10558

Closed
kotran88 opened this issue Mar 25, 2022 · 6 comments
Closed

Eager Few Shot Object Detection Colab Example code is not working #10558

kotran88 opened this issue Mar 25, 2022 · 6 comments
Assignees
Labels
models:official models that come under official repository stale stat:awaiting response Waiting on input from the contributor type:bug Bug in the code

Comments

@kotran88
Copy link

I thought a year ago, it was working right.
but I just run all the sample code Eager Few Shot Object Detection Colab now,

it cause error in
Create model and restore weights for all but last layer

How can I deal with it?

Building model and restoring weights for fine-tuning...
---------------------------------------------------------------------------
UnimplementedError                        Traceback (most recent call last)
[<ipython-input-19-5906ad4ff27f>](https://localhost:8080/#) in <module>()
     37 # Run model through a dummy image so that variables are created
     38 image, shapes = detection_model.preprocess(tf.zeros([1, 640, 640, 3]))
---> 39 prediction_dict = detection_model.predict(image, shapes)
     40 _ = detection_model.postprocess(prediction_dict, shapes)
     41 print('Weights restored!')

3 frames
[/usr/local/lib/python3.7/dist-packages/object_detection/models/ssd_resnet_v1_fpn_keras_feature_extractor.py](https://localhost:8080/#) in _extract_features(self, preprocessed_inputs)
    223 
    224     image_features = self.classification_backbone(
--> 225         ops.pad_to_multiple(preprocessed_inputs, self._pad_to_multiple))
    226 
    227     feature_block_list = []

UnimplementedError: Exception encountered when calling layer "conv1_conv" (type Conv2D).

DNN library is not found. [Op:Conv2D]

Call arguments received:
  • inputs=tf.Tensor(shape=(1, 646, 646, 3), dtype=float32)
@kotran88 kotran88 added models:official models that come under official repository type:bug Bug in the code labels Mar 25, 2022
@kotran88 kotran88 changed the title Eager Few Shot Object Detection Colab is not working Eager Few Shot Object Detection Colab Example code is not working Mar 25, 2022
@jhaigy111
Copy link

Hi, I think this has occurred on #10590 to some extent aswell.

I replaced the first line:
!pip install -U --pre tensorflow=="2.2.0"
with the following:
!pip install tensorflow==2.8

and it worked

@LanVukusic
Copy link

Reset the colab environment completely and run:

!pip install tensorflow==2.8
!apt install --allow-change-held-packages libcudnn8=8.1.0.77-1+cuda11.2

as the first line (replace the provided pip install tensorflow ...)

@yeqingli
Copy link
Member

Mark closed.

@jvishnuvardhan jvishnuvardhan added the stat:awaiting response Waiting on input from the contributor label Sep 7, 2022
@google-ml-butler
Copy link

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.

@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
models:official models that come under official repository stale stat:awaiting response Waiting on input from the contributor type:bug Bug in the code
Projects
None yet
Development

No branches or pull requests

5 participants