-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Embeddings not showing from brain key #4285
Comments
Hi @AlanBlanchet. I'm not sure we will be able to reproduce the issue you are seeing without a full script. Part of the issue may be you are reusing (and not creating a new dataset) noting this output you shared
To create a new dataset, you can use |
Hello and thanks for the reply @benjaminpkane . Yes I'm using a dataset from the zoo. But it should be supported in the viewer ? Right ? The error is simply that we can't dump a numpy array to json when trying to access the API through It returns this error : Traceback (most recent call last):
File \"/home/alan/.cache/pypoetry/virtualenvs/fiftyone-test-KI_-E3R8-py3.10/lib/python3.10/site-packages/fiftyone/server/decorators.py\", line 34, in wrapper
await run_sync_task(lambda: json_util.dumps(response))
File \"/home/alan/.cache/pypoetry/virtualenvs/fiftyone-test-KI_-E3R8-py3.10/lib/python3.10/site-packages/fiftyone/core/utils.py\", line 2317, in run_sync_task
return await loop.run_in_executor(_get_sync_task_executor(), func, *args)
File \"/home/alan/.pyenv/versions/3.10.13/lib/python3.10/concurrent/futures/thread.py\", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File \"/home/alan/.cache/pypoetry/virtualenvs/fiftyone-test-KI_-E3R8-py3.10/lib/python3.10/site-packages/fiftyone/server/decorators.py\", line 34, in <lambda>
await run_sync_task(lambda: json_util.dumps(response))
File \"/home/alan/.cache/pypoetry/virtualenvs/fiftyone-test-KI_-E3R8-py3.10/lib/python3.10/site-packages/bson/json_util.py\", line 472, in dumps
return json.dumps(_json_convert(obj, json_options), *args, **kwargs)
File \"/home/alan/.pyenv/versions/3.10.13/lib/python3.10/json/__init__.py\", line 231, in dumps
return _default_encoder.encode(obj)
File \"/home/alan/.pyenv/versions/3.10.13/lib/python3.10/json/encoder.py\", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File \"/home/alan/.pyenv/versions/3.10.13/lib/python3.10/json/encoder.py\", line 257, in iterencode
return _iterencode(o, 0)
File \"/home/alan/.pyenv/versions/3.10.13/lib/python3.10/json/encoder.py\", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type float32 is not JSON serializable
I haven't had time to investigate why but :
I changed the main.py file to drop the dataset and re-download it if it already exists. I don't really know how data flows back to the frontend but I guess a fix would be to add a |
Hi, Iam encountering the same issue. For UMAP and TSNE no visualizations are shown when using the brain plugins.. I noticed though that PCA works. regards, M |
This may be a caching issue. Running the Screen.Recording.2024-04-25.at.2.57.19.PM.mov |
Hi Benjamin and thanks for the reply! Unfortunately not. Reloading the dataset does not help. Kind regards, M |
I confirm that reloading the dataset doesn't help. |
That is a separate issue likely. I have created #4324 which should resolve the original issue report |
Awesome, thanks Benjamin! |
Describe the problem
The embedding view is just empty after selecting a
brain key
Brain info :
Screenshots :

Python command output :
Code to reproduce issue
System information
python --version
):Python 3.10.13fiftyone --version
):0.23.8 (fiftyone-0.23.8-py3-none-any.whl with hashsha256:378dfa99d5b2dc682e6ed70b71fce6432de1f2576915966b43289f9cd8339b15
)Don't know if these could affect :
Other info/logs
I don't really know how to get python outputs. If you could guide me ?
I tried using the init_logger function from the package and viewing outputs from the web app. But couldn't find anything useful myself...
Don't hesitate to ask for more info if needed.
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
from the FiftyOne community
The text was updated successfully, but these errors were encountered: