-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem about SSD model in ecosystem running with Google Colab #77
Comments
The following fix to nvidia_ssd_processing_utils in NVIDIA_DeepLearningExamples_torchhub/hubconf.py worked for me in Python 3 (see PR NVIDIA/DeepLearningExamples#418) def nvidia_ssd_processing_utils():
|
The PyTorch SSD implemented by NVIDIA relies on the nvidia_ssd_processing_utils() routines in this module (see https://pytorch.org/hub/nvidia_deeplearningexamples_ssd/). Python 3 has issues accessing skimage's io and transform in the original code (issue reported in issue pytorch/hub#77).
@I-M-Russell does the fix work you? Can we close the issue |
Closing as I confirmed this works in Colab now. Thanks! |
when running this part in SSD|PyTorch
inputs = [utils.prepare_input(uri) for uri in uris] tensor = utils.prepare_tensor(inputs, precision == 'fp16')
on Google Colab, it gives these error:
`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in ()
----> 1 inputs = [utils.prepare_input(uri) for uri in uris]
2 tensor = utils.prepare_tensor(inputs, precision == 'fp16')
2 frames
/root/.cache/torch/hub/NVIDIA_DeepLearningExamples_torchhub/hubconf.py in load_image(image_path)
235 def load_image(image_path):
236 """Code from Loading_Pretrained_Models.ipynb - a Caffe2 tutorial"""
--> 237 img = skimage.img_as_float(skimage.io.imread(image_path))
238 if len(img.shape) == 2:
239 img = np.array([img, img, img]).swapaxes(0, 2)
AttributeError: module 'skimage' has no attribute 'io'`
How do I solve it?
The text was updated successfully, but these errors were encountered: