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

Try reading gdrive #1

Closed
wants to merge 13 commits into from
Closed

Try reading gdrive #1

wants to merge 13 commits into from

Conversation

niksirbi
Copy link
Member

Quickly thrown together with @alessandrofelder.

This script assumes that the google drive folder has been locally synced.
The input (google drive) and output folders are read from environment variables.

This script used to error with:

ValueError: axes don't match array

We suspected this has somehow to do with the chunking.

With the latest commit c9283ed I changed da.stack(dask_arrays, axis=0) to da.stack(dask_arrays, axis=-1) so that the last dimension has chunk size of 1 (this avoids the need to transpose).

Now we get a different error:

ValueError: could not broadcast input array from shape (2235,2560,1,2160) into shape (2235,2560,1)

Debugging will be continued...

@niksirbi
Copy link
Member Author

niksirbi commented Apr 4, 2024

We actually fixed the ValueError by loading the images with dask_image.imread.imread(), as in the tutorial.

@niksirbi niksirbi closed this May 2, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant