Skip to content

Commit

Permalink
[Doc] Update videos (#10)
Browse files Browse the repository at this point in the history
* [Doc] update videos

* [Doc] update video

* [Doc] update cover of video
  • Loading branch information
HaiyiMei authored Oct 1, 2023
1 parent 46b9d52 commit 43a5a3b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It is a part of the `OpenXRLab`_ project.

.. raw:: html

<iframe width="640" height="360" src="https://github.com/openxrlab/xrfeitoria/assets/35397764/aeec5504-c4da-4a05-91a0-a5511b23359b" frameborder="0" allowfullscreen></iframe>
<iframe width="640" height="360" src="https://github.com/openxrlab/xrfeitoria/assets/35397764/1e83bcd4-ae00-4c20-8188-3fe73f7c9c01" frameborder="0" allowfullscreen></iframe>

--------

Expand Down
4 changes: 2 additions & 2 deletions docs/en/src/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ wget https://graphics.stanford.edu/~mdfisher/Data/Meshes/bunny.obj
xf-render bunny.obj
```

<iframe width="640" height="360" src="https://github.com/openxrlab/xrfeitoria/assets/35397764/65d739d5-0412-4408-8218-fbf9e4b4c6bf" frameborder="0" allowfullscreen></iframe>
<iframe width="640" height="360" src="https://github.com/openxrlab/xrfeitoria/assets/35397764/430a7264-9337-4327-838d-08e9a354c277" frameborder="0" allowfullscreen></iframe>


<iframe width="640" height="360" src="https://github.com/openxrlab/xrfeitoria/assets/35397764/70afb175-f7cc-4462-9e21-b597200085a9" frameborder="0" allowfullscreen></iframe>
<iframe width="640" height="360" src="https://github.com/openxrlab/xrfeitoria/assets/35397764/9c029eb7-a8be-4d11-890e-b2499ff22caa" frameborder="0" allowfullscreen></iframe>
6 changes: 6 additions & 0 deletions xrfeitoria/sequence/sequence_base.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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'
)
Expand Down

0 comments on commit 43a5a3b

Please sign in to comment.