mani-shailesh / satimage

Code and models for the manuscript "Predicting Poverty and Developmental Statistics from Satellite Images using Multi-task Deep Learning"
https://github.com/agarwalt/satimage
MIT License
35 stars 21 forks source link

Getting error in prediction: #5

Open SandeepThakuri opened 4 years ago

SandeepThakuri commented 4 years ago

x_to_yield = np.array(x_train, dtype=np.float32) ValueError: setting an array element with a sequence. I am getting this error

mani-shailesh commented 4 years ago

Hi Sandeep! Can you please verify that the version of dependencies installed in your system matches those listed in requirements.txt? Since we have not updated this project in a while, I expect using newer versions of the libraries may lead to unexpected issues.

SandeepThakuri commented 4 years ago

Hi, Yes I checked the version.I have downloaded the images at 1280×1280 and converted them into 1920×1920.Will that make a difference?

On Mon, 13 Apr 2020, 08:07 Shailesh Mani Pandey, notifications@github.com wrote:

Hi Sandeep! Can you please verify that the version of dependencies installed in your system matches those listed in requirements.txt? Since we have not updated this project in a while, I expect using newer versions of the libraries may lead to unexpected issues.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mani-shailesh/satimage/issues/5#issuecomment-612722469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHN4QQGCUGS6DGE2EUROZZDRMJ3GBANCNFSM4L3BU5BA .

SandeepThakuri commented 4 years ago

Hi, This is the exact error I am getting ValueError: setting an array element with a sequence. which is being raised from img_data_generator in satimage.py in the line x_to_yield = np.array(x_train, dtype=np.float32)

On Sat, 18 Apr 2020, 00:16 sandeep thakuri, thakurisandeep5@gmail.com wrote:

Hi, Yes I checked the version.I have downloaded the images at 1280×1280 and converted them into 1920×1920.Will that make a difference?

On Mon, 13 Apr 2020, 08:07 Shailesh Mani Pandey, notifications@github.com wrote:

Hi Sandeep! Can you please verify that the version of dependencies installed in your system matches those listed in requirements.txt? Since we have not updated this project in a while, I expect using newer versions of the libraries may lead to unexpected issues.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mani-shailesh/satimage/issues/5#issuecomment-612722469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHN4QQGCUGS6DGE2EUROZZDRMJ3GBANCNFSM4L3BU5BA .