tensorflow / models

Models and examples built with TensorFlow
Other
77.16k stars 45.75k forks source link

Unable to install object_detection package in object_detection_tutorial.ipynb #10404

Open bwieciech opened 2 years ago

bwieciech commented 2 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/blob/master/research/object_detection/colab_tutorials/object_detection_tutorial.ipynb

2. Describe the bug

Code cell

%%bash 
cd models/research
pip install .

raises error: ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

3. Steps to reproduce

1) Navigate to https://github.com/tensorflow/models/blob/master/research/object_detection/colab_tutorials/object_detection_tutorial.ipynb 2) Click Run in Google Colab 3) When in Google Colab, click Runtime -> Run all

4. Expected behavior

The notebook executes without error and outputs inference results of a pretrained model.

5. Additional context

N/A

6. System information

Google Colab

- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): - Mobile device name if the issue happens on a mobile device: - TensorFlow installed from (source or binary): - TensorFlow version (use command below): - Python version: - Bazel version (if compiling from source): - GCC/Compiler version (if compiling from source): - CUDA/cuDNN version: - GPU model and memory:

bwieciech commented 2 years ago

I have added a pull request here: https://github.com/tensorflow/models/pull/10406

JaledMC commented 2 years ago

Thanks! With your modification, notebook runs smoothly

bwieciech commented 2 years ago

@JaledMC no problem, happy I could help :) @tombstone @jch1 @pkulzc could you please look at https://github.com/tensorflow/models/pull/10406 rerun the CLA scan and possibly merge or ping the right person? :)