检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Method 1: Enter a valid OBS path in the text box and click OK. Figure 3 Configuring an OBS path Method 2: Select an OBS path in OBS File Browser and click OK. Figure 4 OBS File Browser Method 3: Use the default path.
If a dataset contains a large number of data files (massive small files) and data is stored in OBS, files need to be repeatedly read from OBS during training. As a result, the training process is waiting for reading files, resulting in low read efficiency.
Model Management Description Creating a model in ModelArts is free, but if you import a model package file from OBS, you need to store it in OBS, which will involve some charges. For details, see Table 1.
Move an OBS file to another OBS file.
"obs:object:GetObject", "obs:object:GetObjectVersion", "obs:object:PutObject", "obs:object:GetObjectAcl", "obs:object:PutObjectAcl", "obs:object:GetObjectVersionAcl" ], "Effect"
Use the ACL permission assigned by the tenant account for the OBS bucket used by ModelArts. Parent topic: Training Models
Symptom mox.file.copy_parallel(src_obs_dir=input_storage,'obs://dyyolov8/yolov5_test/yolov5-7.0/datasets'), How do I define an OBS path as a variable in the mox function? Solution The following is an example of defining a variable: input_storage = '.
(img_path), np.uint8), 1) To use the torch package in the MXNet environment, run the following code: import os os.sysytem('pip install torch') import torch Parent topic: OBS Operation Issues
Parent topic: OBS Operation Issues
Migrating a Model to Another Account Use either of the following methods to migrate a trained model to another account: Download the trained model and then upload it to the OBS bucket in the region corresponding to the target account.
The possible cause is that the storage class of the target OBS bucket is incorrect. In this case, select a bucket of the standard storage class to import data. Parent topic: Data Management (Old Version)
Parent topic: OBS Operation Issues
However, OBS bills you for the storage space used for storing the datasets. You are advised to go to the OBS console and delete the stored data and OBS buckets to stop billing. Parent topic: Billing FAQs
AK/SK-based Authentication This authentication method is available for OBS Management, Training Management, Model Management, and Service Management.
For details, see the OBS pricing details calculator and create OBS buckets to store data used by ModelArts. Parent topic: Billing
Select an OBS path or dataset path as the training input, and an OBS path for the output. Parent topic: Reading Data During Training
Search for OBS and select OBS Administrator. ModelArts training jobs use OBS to forward data. Therefore, the permissions for using OBS are necessary. Assign permissions for using SWR. Search for SWR and select SWR FullAccess.
If they are not in the same region, create a bucket and a folder in OBS that is in the same region as ModelArts, and upload data to the bucket. Check whether the OBS path is obs://xxx.
Authentication Using the Username and Password This authentication method is available for OBS Management, Training Management, Model Management, and Service Management. Sample Code For details about the concepts of the account and user, see Basic Concepts of IAM.
# Save model to local path. model.save("/tmp/spark_model") After the model is saved, it must be uploaded to the OBS directory before being published. The config.json configuration and the customize_service.py inference code must be included during the publishing.