Giter Club home page Giter Club logo

Comments (6)

dbbert avatar dbbert commented on July 18, 2024

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.

anitera avatar anitera commented on July 18, 2024

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.

dbbert avatar dbbert commented on July 18, 2024

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.

anitera avatar anitera commented on July 18, 2024

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.

dbbert avatar dbbert commented on July 18, 2024

Sorry I made a typo, that should've been pip install --upgrade segments-ai, with a dash.

from segments-ai.

anitera avatar anitera commented on July 18, 2024

Thanks, now it's working and I managed to upload new predictions.

from segments-ai.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.