HenriquesLab / ZeroCostDL4Mic

ZeroCostDL4Mic: A Google Colab based no-cost toolbox to explore Deep-Learning in Microscopy
MIT License
566 stars 130 forks source link

YOLOv2 section 1.3 tensorflow #246

Open K-Sachie opened 1 year ago

K-Sachie commented 1 year ago

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.

vianamp commented 1 year ago

Same here. Tensorflow 1.x is no longer supported in Google Colab.

jonversusjon commented 1 year ago

Same here, plus 1