Help Center> ModelArts> Troubleshooting> Inference Deployment> AI Application Management> Obtaining the Directory Structure in the Target Image When Importing an AI Application Through OBS
Updated on 2022-12-08 GMT+08:00

Obtaining the Directory Structure in the Target Image When Importing an AI Application Through OBS

Symptom

When I create an AI application, customized files and folders are stored in the OBS directory specified by a meta model source, and these files and folders will be copied to the target image. What is the path to the copied files and folders?

Possible Causes

When an AI application is imported through OBS, ModelArts copies all files and folders in the specified OBS directory to a path specified in the image. You can obtain the path in the image by using self.model_path.

Solution

For details about how to obtain the path in an image, see Specifications for Model Inference Coding.