diff --git a/README.md b/README.md index bd163fc3..85cc1489 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ XRFeitoria is a rendering toolbox for generating synthetic data photorealistic with ground-truth annotations. It is a part of the [OpenXRLab](https://openxrlab.org.cn/) project. -https://github.com/openxrlab/xrfeitoria/assets/35397764/3a4cbc16-de85-48fa-9e15-3b6c0c3b805d +https://github.com/openxrlab/xrfeitoria/assets/35397764/1e83bcd4-ae00-4c20-8188-3fe73f7c9c01 ### Major Features @@ -62,9 +62,9 @@ wget https://graphics.stanford.edu/~mdfisher/Data/Meshes/bunny.obj xf-render bunny.obj ``` -https://github.com/openxrlab/xrfeitoria/assets/35397764/65d739d5-0412-4408-8218-fbf9e4b4c6bf +https://github.com/openxrlab/xrfeitoria/assets/35397764/430a7264-9337-4327-838d-08e9a354c277 -https://github.com/openxrlab/xrfeitoria/assets/35397764/70afb175-f7cc-4462-9e21-b597200085a9 +https://github.com/openxrlab/xrfeitoria/assets/35397764/9c029eb7-a8be-4d11-890e-b2499ff22caa ### Documentation diff --git a/docs/en/index.rst b/docs/en/index.rst index 30e4c985..b525b951 100644 --- a/docs/en/index.rst +++ b/docs/en/index.rst @@ -20,7 +20,7 @@ It is a part of the `OpenXRLab`_ project. .. raw:: html - + -------- diff --git a/docs/en/src/cli.md b/docs/en/src/cli.md index 89060fd9..5f7cf214 100644 --- a/docs/en/src/cli.md +++ b/docs/en/src/cli.md @@ -13,7 +13,7 @@ wget https://graphics.stanford.edu/~mdfisher/Data/Meshes/bunny.obj xf-render bunny.obj ``` - + - + diff --git a/xrfeitoria/sequence/sequence_base.py b/xrfeitoria/sequence/sequence_base.py index d31b9e35..24e265ad 100644 --- a/xrfeitoria/sequence/sequence_base.py +++ b/xrfeitoria/sequence/sequence_base.py @@ -1,4 +1,5 @@ from abc import ABC, abstractmethod +from pathlib import Path from typing import Dict, List, Literal, Optional, Tuple, Union from loguru import logger @@ -98,6 +99,11 @@ def import_actor( ) -> ActorBase: if actor_name is None: actor_name = cls._object_utils.generate_obj_name(obj_type='actor') + # judge file path + file_path = Path(file_path).resolve() + if not file_path.exists(): + raise FileNotFoundError(f'File "{file_path.as_posix()}" is not found') + # set transform keys transform_keys = SequenceTransformKey( frame=0, location=location, rotation=rotation, scale=scale, interpolation='CONSTANT' )