-
Notifications
You must be signed in to change notification settings - Fork 34
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
Issue with Files Needed for CropHarvestMultiClassValidation Class #38
Comments
Hi @gabrieltseng , @kvantricht , @rubencart , and @sabman However, I am encountering difficulties accessing the "features/dynamic_world_arrays" and "test_dynamic_world_features" files necessary for this task. Could you please provide me with direct links or alternative methods to download these folders? Your assistance in resolving this access issue would be greatly appreciated. Kind Regards, |
Hi @mahrokh3409 , The dynamic world data needs to be re-exported from Google Earth Engine. This can be done by calling the You then need to transform the tif files you receive from EarthEngine into npy arrays - this can be achieved via the For the test data, you will need to use the So the flow is:
I hope this helps! |
Hi @gabrieltseng, Thanks for your response. My main issue is related to the download function and access to the bucket on Google Cloud. It has a permission error. def download_cropharvest_data(root_name: str = ""): The export_dynamic_world function also calls the above function to download files. Files related to CropHarvest are downloaded successfully and I have access to "features" and "test_features" data. However, the second part of the code (highlighted parts) generates an error as you can see below: Forbidden: 403 GET https://storage.googleapis.com/download/storage/v1/b/lem-assets2/o/eval%2Fcropharvest%2Ffeatures%2Fdynamic_world_arrays.tar.gz?alt=media: [email protected] does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).: ('Request failed with status code', 403, 'Expected one of', <HTTPStatus.OK: 200>, <HTTPStatus.PARTIAL_CONTENT: 206>) Can you please let me know how I can access those files? Is there any other way of accessing those files? I appreciate your help. Kind Regards, |
Hi @mahrokh3409 , this is expected. Did you go through the steps to download the export the data from Earth Engine into a google cloud project (as described above)? If not you will not have any data to download. Google Cloud Bucket names are globally unique, so you will need to change the bucket / folder names being exported to. These are defined in the following places:
|
Dear @gabrieltseng Thank you so much for your response and detailed guidance. I will follow the instructions and let you know if there are any problems Kind Regards, |
Hi @gabrieltseng
I am currently working on implementing the CropHarvestMultiClassValidation class within presto/eval/cropharvest_eval.py. To facilitate this, I require access to the data accessible via the download_cropharvest_data() function.
However, I am encountering difficulties accessing the "features/dynamic_world_arrays" and "test_dynamic_world_features" files necessary for this task. Could you please provide me with direct links or alternative methods to download these folders?
Your assistance in resolving this access issue would be greatly appreciated.
Kind Regards,
Mahrokh
The text was updated successfully, but these errors were encountered: