Skip to content

Commit

Permalink
chore(docs): minor revision on 3d mesh search
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Nov 2, 2021
1 parent 93dea1c commit caf8dc7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/datatype/mesh/mesh-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Just like other data types, the 3D meshes search pipeline consists of **loading*

Let's first install the following PyPI dependencies:
```shell
pip install jina tensorflow trimesh pyrender
pip install tensorflow trimesh pyrender
```

## Load GLB data
Expand Down Expand Up @@ -270,6 +270,7 @@ This is how the flow we built looks like:

Combining the steps listed above and import the necessary dependencies, the following is the complete code.

````{dropdown} Complete source code
```python
from typing import Optional, List
Expand Down Expand Up @@ -504,8 +505,10 @@ with Flow().add(uses=GlbCrafter).add(uses=PNEncoder, uses_with={'ckpt_path': 'mo
doc = results[0].docs[0]
visualizer = GlbVisualizer(doc, matches=doc.matches[1:4]).visualize()
```
````

```{admonition} Warning

```{admonition} Import warning
:class: warning
Note, `pyrender` has to be imported before all `pyglet` dependencies, otherwise an error will be raised in some os environments such as Mac OS.
```
Expand Down

0 comments on commit caf8dc7

Please sign in to comment.