HenriquesLab / HenriquesLab/ZeroCostDL4Mic

YOLOv2 section 1.3 tensorflow

Open
#246 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
652
Forks
144
PR merge metrics
No merged PRs in 30d

Description

Hi, I am trying to use YOLOv2 for my image object detection and I encounter issue on section 1.3.
Could you please help resolve my issue (the following is the error place)? Thank you.


ValueError Traceback (most recent call last)
in
45
46 #@markdown ##Load Key Dependencies
---> 47 get_ipython().run_line_magic('tensorflow_version', '1.x')
48
49 from pascal_voc_writer import Writer

1 frames
/usr/local/lib/python3.8/dist-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2312 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2313 with self.builtin_trap:
-> 2314 result = fn(*args, **kwargs)
2315 return result
2316

/usr/local/lib/python3.8/dist-packages/google/colab/_tensorflow_magics.py in _tensorflow_version(line)
33
34 if line.startswith("1"):
---> 35 raise ValueError(
36 # pylint: disable=line-too-long
37 textwrap.dedent("""\

ValueError: Tensorflow 1 is unsupported in Colab.

Your notebook should be updated to use Tensorflow 2.
See the guide at https://www.tensorflow.org/guide/migrate#migrate-from-tensorflow-1x-to-tensorflow-2.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with section 1.3 of the YOLOv2 notebook and the failing tensorflow_version('1.x') line. Read the TensorFlow migration guide linked in the report and determine the required TensorFlow 2 updates; done means the section runs in Google Colab without the unsupported-version error.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.