Help Center/ ModelArts/ FAQs/ Training Jobs/ Reading Data During Training/ How Do I Define Path Variables When Using MoXing?
Updated on 2024-06-15 GMT+08:00

How Do I Define Path Variables When Using MoXing?

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 = './test.py'
import moxing as mox
mox.file.copy_parallel(input_storage,'obs://dyyolov8/yolov5_test/yolov5-7.0/datasets')