0

I was previously able to convert an N band image to an array image in GEE code editor and then export it in TFRecord format by the following command:

Export.image.toCloudStorage({
  image: image.toArray(),
  description: outFileName,
  bucket: bucketName,
  scale: scale,
  region: box,
  fileFormat: 'TFRecord',
  formatOptions: {
    patchDimensions: [patch_size, patch_size],
    tensorDepths: [N],
    compressed: true
  }
});

But now it throws below code when I run the export in tasks pane:

"tensorDepths" option needs to have the form Object<string, number>.

I found nothing about this error on the net. Has the command format changed?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.