CosmiQ / solaris

CosmiQ Works Geospatial Machine Learning Analysis Toolkit
https://solaris.readthedocs.io
Apache License 2.0
412 stars 112 forks source link

[BUG]: I have an error in Solaris_FOSS4G_2019/1_intro_to_solaris.ipynb #425

Open enriquebuendia opened 3 years ago

enriquebuendia commented 3 years ago

Thank you for helping us improve solaris!

Summary of the bug

On notebooks 1 & 4 when I try to run the 3rd cell title 'Running the full pipeline'

Buggy behavior and/or error message

AttributeError Traceback (most recent call last)
in
11 print('dataset loaded. Running inference on the image.')
12 start_time = time.time()
---> 13 xdxd_inferer(inf_df)
14 end_time = time.time()
15 print('running inference on one image took {} seconds'.format(end_time-start_time))

~/anaconda3/envs/solaris/lib/python3.7/site-packages/solaris/nets/infer.py in call(self, infer_df)
73 for idx, im_path in enumerate(infer_df['image']):
74 temp_im = gdal.Open(im_path)
---> 75 proj = temp_im.GetProjection()
76 gt = temp_im.GetGeoTransform()
77 inf_input, idx_refs, (

AttributeError: 'NoneType' object has no attribute 'GetProjection'