Skip to content

Commit da513c0

Browse files
authored
Update readme.md
1 parent 8322c30 commit da513c0

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

src/hyrax/3d_viz/readme.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
# Server Initialization
2-
To start the interactive server, type
1+
# Hyrax 3D Latent Space Explorer
2+
The Hyrax 3D Latent Space Explorer is a JavaScript-based tool that lets you visualize and interact with three-dimensional UMAP embeddings of your dataset. You can color your embeddings by different parameters, select different objects to see their catalog properties, as well as the source data (e.g., images for an image-based dataset that ws projected onto a latent space)
33

4-
`python start_3d_viz_server.py`
4+
## Saving UMAP-ed vectors as JSON
5+
* The first step in running the Hyrax 3D Latent Space Explorer is to convert the outputs from Hyrax UMAP module into a `.json` file
6+
* To do this, use save_umap_to_json.py. This can be run using `python save_umap_to_json.py /path/to/results/dir`
7+
* To understand optional arguments, do `python save_umap_to_json.py --help`
58

6-
This will launch the service on the 8181 port. If you are running this on a remote machine, forward this port appropriately using something like
79

8-
`ssh -N -L 8181:server_name:8181 username@loginnode.com`
9-
10-
Finally, navigate to http://localhost:8181/
11-
12-
You can also optionally change the port the server is being displayed on; and also pass a folder containing your cutouts. Note that the path passed to `cutouts_dir` is relative to the location of root of the server (i.e., location of the `start_3d_viz_server.py` file)
13-
14-
To see all the command line arguments, do `python start_3d_viz_server.py --help`
10+
## Server Initialization
11+
* To start the Hyrax 3D Latent Space Explorer, type `python start_3d_viz_server.py`
12+
* This will launch the service on the 8181 port. If you are running this on a remote machine, forward this port appropriately using something like `ssh -N -L 8181:server_name:8181 username@loginnode.com`
13+
* Finally, navigate to http://localhost:8181/ where you will find the Hyrax 3D Latent Space Explorer running.
14+
* You can also change the port the server is being displayed on; and also pass a folder containing your cutouts. To see all the command line arguments, do `python start_3d_viz_server.py --help`
15+
* Note that the path passed to `cutouts_dir` is relative to the location of root of the server (i.e., location of the `start_3d_viz_server.py` file)
1516

1617
## FAQs
17-
1. If there are repeated IDs in your dataset, you will see the second instance of the object not loaded in the image viewer. Instead you will keep seeing the image loading spinning wheel symbol.
18-
19-
# Saving UMAPs as json
20-
To convert a UMAP created by fibad to the JSON format, use save_umap_to_json.py
21-
This can be run using `python save_umap_to_json.py /path/to/results/dir`
22-
To see optional argments do `python save_umap_to_json.py --help`
18+
1. If there are repeated Object IDs in your dataset, you will see the second instance of the object not loaded in the image viewer. Instead, you will keep seeing the image loading spinning wheel symbol.
19+
2. If images are not being loaded, chances are something is going on wrong in the file loading process. To debug, go to the Developer Console of your browser. On Google Chrome, this is View --> Developer --> Developer Tools --> Console
2320

2421

25-
# Simpler Notebook Version
22+
## Simpler Notebook Version -- Deprecated
2623
For a more straightforward plotly 3d plot, use the function in plotly_3d.py

0 commit comments

Comments
 (0)