Comments (6)
Could you try creating a new dataset release and running the code again? We have updated our SDK yesterday, and there might be compatibility issues with old release files.
Alternatively, you can install the previous version of the SDK (which should still be compatible with your old release files) with pip install segments-ai==0.22
from segments-ai.
Thanks, it helped. But right after those line, another error occurred. Actually, I saw 2 errors, one was that my labelset "ground-truth" not found and I tried with different labelset and than tried on tomatoes again and nowhere it worked. Next, I downgraded to segments-ai==0.22 and got "label_status" error and after I upgrade it back to 0.23 still seeing the same error.
# Initialize a dataset from the release file
release = client.get_release(dataset_name, 'v1.2')
dataset = SegmentsDataset(release, labelset='ground-truth', filter_by='labeled')
# Visualize a few samples in the dataset
for sample in dataset:
visualize(sample['image'], sample['segmentation_bitmap'])
Initializing dataset. This may take a few seconds...
KeyError Traceback (most recent call last)
in ()
4 # Initialize a dataset from the release file
5 release = client.get_release(dataset_name, 'v1.2')
----> 6 dataset = SegmentsDataset(release, labelset='ground-truth', filter_by='labeled')
7
8 # Visualize a few samples in the dataset
1 frames
/usr/local/lib/python3.6/dist-packages/segments/dataset.py in load_dataset(self)
57 for sample in samples:
58 if sample['labels'][self.task] is not None:
---> 59 label_status = sample['labels'][self.task]['label_status'].lower()
60 else:
61 label_status = 'unlabeled'
KeyError: 'label_status'
from segments-ai.
You're right, there was another bug I overlooked, apologies! Could you update the SDK (pip install --upgrade segmentsai), create a new release, and try again?
from segments-ai.
No worry :)
well, for some reason I can't. Both upgrade or reinstalling throw:
"ERROR: Could not find a version that satisfies the requirement segmentsai (from versions: none)
ERROR: No matching distribution found for segmentsai"
from segments-ai.
Sorry I made a typo, that should've been pip install --upgrade segments-ai
, with a dash.
from segments-ai.
Thanks, now it's working and I managed to upload new predictions.
from segments-ai.
Related Issues (19)
- upload_asset fails HOT 1
- huggingface dataset integration readme check HOT 3
- Export folder is never used HOT 2
- Release files - Enhancement request HOT 1
- Issue in export API HOT 1
- Loading release with skipped images causes an exception to be thrown HOT 3
- export_dataset error HOT 1
- release2dataset throws an error HOT 4
- no json file for huggingface dataset HOT 5
- Dataset created with segments.ai does not work with SegFormer HOT 7
- KeyError when downloading a dataset with missing segmentations HOT 1
- PIL.UnidentifiedImageError when downloading dataset with missing image
- access labeler for a given sample or annotation HOT 1
- Export dataset error HOT 1
- error when loading dataset with image with no segmentation mask HOT 3
- the documentation for the python SDK should mention the minimum supported python version per release HOT 7
- HTTPError/NetworkError when doing `add_sample` for a point cloud sequence even though the sample successfully uploads HOT 3
- pycocotools is a problematic dependency HOT 2
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 segments-ai.