hassony2 / torch_videovision

Transforms for video datasets in pytorch
GNU General Public License v3.0
269 stars 44 forks source link

import error with skimage #11

Closed tomginsberg closed 4 years ago

tomginsberg commented 4 years ago

Hi, great package works well.

When I call a video transform I get the error AttributeError: module 'skimage' has no attribute 'transform'

I see the same issue here

The simple fix is to replace

import skimage
skimage.transform.(whatever)

with

import skimage.transform
skimage.transform.(whatever)

As mentioned in the linked issue, scikit-image uses "lazy importing", so you have to explicitly import submodules.

hassony2 commented 4 years ago

This should be fixed now, thank you very much !

Best,

Yana