pytorch-semseg icon indicating copy to clipboard operation
pytorch-semseg copied to clipboard

Missing Raw input

Open sklipnoty opened this issue 6 years ago • 4 comments

from ptsemseg.augmentations import Compose, RandomHorizontallyFlip, RandomRotate, raw_input

ImportError: cannot import name 'raw_input'

sklipnoty avatar Dec 27 '18 12:12 sklipnoty

I have encountered the same problem as you, how do you solve it?

TaoZhong11 avatar Dec 28 '18 07:12 TaoZhong11

I have encountered the same problem as you, how do you solve it?

The problem seems to be mainly present in the loaders for the different datasets. Since I am using my own dataset, I removed all references to it.

The cfg in the repo itself is outdated aswell, use the one in the readme.

I'm guessing it's a PR because the naming doesn't conform to the rest?

sklipnoty avatar Dec 28 '18 08:12 sklipnoty

I am trying to implement a segnet using the CAMVID dataset, and I have encountered the same issue. Any ideas as to how to resolve it?

Could it be a version issue? I am using python 3.6.7

sandy9999 avatar Jan 02 '19 07:01 sandy9999

raw_input is there in python 2.7 not in python 3.6 so instead of raw_input use command input

zaidzidane avatar Jan 08 '19 06:01 zaidzidane