Giter Club home page Giter Club logo

Comments (5)

tylerganter avatar tylerganter commented on June 2, 2024

There are two parts, "ingesting" and "inserting". The ingesting is basically obsolete with the updated optimizations and can be removed. The inserting still takes some time but there's no notion of a progress bar we could acquire. That being said, we should remove the progress bar all together

from fiftyone.

brimoor avatar brimoor commented on June 2, 2024

For the types of datasets that we currently work with, parsing the samples (ie., creating fo.Sample instances) is pretty quick (thanks to Tyler's recent work). BUT, if the user provides a complicated SampleParser, it may not be so quick to parse the samples. So, a ProgressBar may still be warranted.

The saving part is currently done in a single batch, regardless of dataset size, so we don't have a hook into the process to display a progress bar. However, it may be a better practice to save the samples in batches, both to avoid DB transactions that take a second or longer, and to enable a progress bar to track the progress on the saving.

In fact, it would be preferable to interleave parsing and saving (calls to add_samples()) to prevent the need for storing ALL of the fo.Samples in memory. We're designing the system in such a way that the user can work with any number of samples. So, this would be a required change anyway.

from fiftyone.

brimoor avatar brimoor commented on June 2, 2024

Until we have a chance to address the underlying implementation, I removed the progress bar as requested. It's the best option for the current implementation.

from fiftyone.

brimoor avatar brimoor commented on June 2, 2024

Updated the issue title to reflect the underlying spirit of this issue now that the existing progress bar has been removed

from fiftyone.

brimoor avatar brimoor commented on June 2, 2024

This is completely resolved by #239. There is now a single progress bar that tracks parsing + saving to the DB together as a single operation

from fiftyone.

Related Issues (20)

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.