Skip to content
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

The code (ds2.imagePath = path) should be added in the demo.py #3

Open
XJhaoren opened this issue Apr 20, 2018 · 0 comments
Open

The code (ds2.imagePath = path) should be added in the demo.py #3

XJhaoren opened this issue Apr 20, 2018 · 0 comments

Comments

@XJhaoren
Copy link

XJhaoren commented Apr 20, 2018

ds2 = deepcopy(ds)
# Nordland winter dataset
ds2.name = 'winter'
#ds.imagePath = '../datasets/nordland/64x32-grayscale-1fps/winter'
try:
    path = os.environ['DATASET_2_PATH']
except:
    path = '../datasets/nordland/64x32-grayscale-1fps/winter'
    print "Warning: Environment variable DATASET_2_PATH not found! Trying '"+path+"'"
ds2.imagePath = path
ds2.saveFile = '%s-%d-%d-%d' % (ds2.name, ds2.imageIndices[0], ds2.imageSkip, ds2.imageIndices[-1])
# ds.crop=[5 1 64 32]
ds2.crop=[]
@XJhaoren XJhaoren changed the title The code (ds2.imagePath = path) maybe should add in the demo.py The code (ds2.imagePath = path) should be added in the demo.py Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant