While trying to export training (about 700 points) and testing data (about 300 points) as TFRecord, I am getting the following error: User memory limit has exceeded
The code I have written, is similar to the material available online, and is:
var band = [ 'B1', 'B2', 'B3','B4','B5','B6','B7', 'B8', 'B9', 'B10', 'B11', 'B12'];
var training = cloudFree.select(band).sampleRegions({
collection: trainFinal,
properties: ['CrID'],
scale: 30,
tileScale: 16
});
//Exporting Training and Testing datasets
Export.table.toCloudStorage({
collection:training,
description:'Training_Export',
fileNamePrefix: 'trainingTestData',
bucket: gcs_bucket,
fileFormat:'TFRecord'
});
Is there any mistake in the above code, or should I reduce the number of points / bands?