Skip to content

library path issue in Step 6: Run a simple dataset loader test #206

Open
@oztc

Description

@oztc

when we run pytorch dense correspondence code, we encounter the following issue:


ImportError Traceback (most recent call last)
in ()
1 import dense_correspondence_manipulation.utils.utils as utils
2 utils.add_dense_correspondence_to_python_path()
----> 3 from dense_correspondence.training.training import *
4 import sys
5 import logging

/home/robot/code/dense_correspondence/training/training.py in ()
28 import pytorch_segmentation_detection.models.fcn as fcns
29 import pytorch_segmentation_detection.models.resnet_dilated as resnet_dilated
---> 30 from pytorch_segmentation_detection.transforms import (ComposeJoint,
31 RandomHorizontalFlipJoint,
32 RandomScaleJoint,

/home/robot/code/external/pytorch-segmentation-detection/pytorch_segmentation_detection/transforms.py in ()
5 from PIL import Image, ImageOps
6
----> 7 import torchvision.transforms.functional as F
8
9

ImportError: No module named functional

we have checked in the terminal by using the same code, obviously it is right library path. it is very strange why it is not right in Jupyter notebook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions