|
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) |
3 | 3 |
|
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` |
5 | 8 |
|
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 |
7 | 9 |
|
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) |
15 | 16 |
|
16 | 17 | ## 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 |
23 | 20 |
|
24 | 21 |
|
25 |
| -# Simpler Notebook Version |
| 22 | +## Simpler Notebook Version -- Deprecated |
26 | 23 | For a more straightforward plotly 3d plot, use the function in plotly_3d.py
|
0 commit comments