Comments (8)
Hi Benjamin and thanks for the reply!
Unfortunately not. Reloading the dataset does not help.
Kind regards,
M
from fiftyone.
I confirm that reloading the dataset doesn't help. For PCA which works I'm also not able to colorby the ground_truth label. Don't know if it's a distinct bug or if it is linked.
That is a separate issue likely. I have created #4324 which should resolve the original issue report
from fiftyone.
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
Loading existing dataset 'coco-2017'. To reload from disk, either delete the existing dataset or provide a custom `dataset_name` to use
To create a new dataset, you can use dataset.clone("cloned-dataset")
, or give the zoo dataset a unique dataset_name
when using foz.load_zoo_dataset()
from fiftyone.
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 ?
I tried to investigate further and managed to get an error from the backend.
The error is simply that we can't dump a numpy array to json when trying to access the API through http://localhost:5151/embeddings/plot
.
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 made a github repo to reproduce the issue
- I also made a youtube video showing how I ran the env
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 .tolist()
if the data is an instance of np.array. I just don't know where...
from fiftyone.
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
from fiftyone.
This may be a caching issue. Running the reload_dataset
operator may resolve the issue when encountered
Screen.Recording.2024-04-25.at.2.57.19.PM.mov
from fiftyone.
I confirm that reloading the dataset doesn't help.
For PCA which works I'm also not able to colorby the ground_truth label. Don't know if it's a distinct bug or if it is linked.
from fiftyone.
Awesome, thanks Benjamin!
from fiftyone.
Related Issues (20)
- 3D point-cloud unable to view each point X Y Z values HOT 1
- [BUG] Can't reach app page in remote browser HOT 2
- [BUG] from_rotated_box: `theta` kwarg represents clockwise, not counterclockwise rotation HOT 1
- Could not connect to session even tho the local app is launched [BUG] HOT 1
- [BUG] Memory leak when importing CocoDetection Dataset with random category_id into FiftyOne HOT 10
- [BUG] ConnectionResetError while processing big dataset HOT 1
- [FR] Support setting tags in custom importer class HOT 1
- [BUG] Fiftyone fails to create the metadata for large images HOT 1
- [BUG] upload dataset with 'keypoints' field to labelstudio correctly
- [BUG] CVAT fouc.import_annotations not importing video annotations
- No label colors not showing in Embeddings panel[BUG] HOT 1
- [BUG] Mongoengine: using pop() to update dict fields is dangerous and should be avoided HOT 1
- [BUG] GraphQL API Error name '_HAS_DEFAULT_FACTORY' is not defined HOT 2
- Wrong DateField value loaded from MongoDB HOT 3
- [BUG] operator set_progress error HOT 1
- fo.core.video.make_frames_dataset is sneakily considered a frame view HOT 10
- [FR] support ultralytics yolov8 models pretrained on open images v7 dataset in the model zoo
- [BUG] lancedb backend doesnt work in exfat disk HOT 1
- [BUG] Memory leak when using `add_coco_labels` for instance segmentation with coco_id_field set HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiftyone.