azureml-examples
azureml-examples copied to clipboard
I can't create a datastore
Operating System
Linux
Version Information
Python version : 3.10 azure-ai-ml package version: 1.8.0
Steps to reproduce
I ran the cells of this notebook.
And when I try upload the images to Datastore through an AML Data asset (URI Folder) I have an error. The error is generated by this cell :
from azure.ai.ml.entities import Data
from azure.ai.ml.constants import AssetTypes, InputOutputModes
from azure.ai.ml import Input
my_data = Data(
path=dataset_dir,
type=AssetTypes.URI_FOLDER,
description="Fridge-items images instance segmentation",
name="fridge-items-images-instance-segmentation",
)
uri_folder_data_asset = ml_client.data.create_or_update(my_data)
print(uri_folder_data_asset)
print("")
print("Path to folder in Blob Storage:")
print(uri_folder_data_asset.path)
Expected behavior
I should be able to upload the images.
Actual behavior
Error / ValueError :
ValueError Traceback (most recent call last) /home/azureuser/cloudfiles/code/Users/lucas.colas/segmentation-of-windows-and-doors/detection/train_model.ipynb Cell 12 line 8 1 my_data = Data( 2 path=dataset_dir, 3 type=AssetTypes.URI_FOLDER, 4 description="Fridge-items images Object detection", 5 name="fridge-items-images-object-detection", 6 ) ----> 8 uri_folder_data_asset = ml_client.data.create_or_update(my_data) 10 print(uri_folder_data_asset) 11 print("")
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/azure/ai/ml/_telemetry/activity.py:263, in monitor_with_activity.
.monitor. .wrapper(*args, **kwargs) 260 @functools.wraps(f) 261 def wrapper(*args, **kwargs): 262 with log_activity(logger, activity_name or f.name, activity_type, custom_dimensions): --> 263 return f(*args, **kwargs) File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/azure/ai/ml/operations/_data_operations.py:368, in DataOperations.create_or_update(self, data) 361 if str(ex) == ASSET_PATH_ERROR: 362 raise AssetPathException( 363 message=CHANGED_ASSET_PATH_MSG, 364 tartget=ErrorTarget.DATA, 365 no_personal_data_message=CHANGED_ASSET_PATH_MSG_NO_PERSONAL_DATA, ... --> 760 raise ValueError("No value for given attribute") 762 try: 763 if data_type in self.basic_types.values():
ValueError: No value for given attribute
Addition information
No response