Git Product home page Git Product logo

Comments (11)

mlubej avatar mlubej commented on July 19, 2024

Hi @divyanipatil

Are you running the Slovenia land use land cover example?

from eo-learn.

DanielMoraite avatar DanielMoraite commented on July 19, 2024

from eo-learn.

mlubej avatar mlubej commented on July 19, 2024

Dear @DanielMoraite

I'm working at Sinergise with the EO Research team, where we are also developing and maintaining eo-learn.

If you want to include Planet data that you already have at hand, the best way would be to look at some EOTask examples and create your own EOTask that appropriately loads the data that you have.

Cheers!

from eo-learn.

divyanipatil avatar divyanipatil commented on July 19, 2024

Hi @mlubej
I checked the Slovenia land use land cover example, but as I've now added a description above, saving and loading from a disk is not feasible in my case as the number of EOPatches is huge. I'd prefer getting final results from the EOExecutor itself.

Thanks,
Divyani

from eo-learn.

mlubej avatar mlubej commented on July 19, 2024

Hi @mlubej
I checked the Slovenia land use land cover example, but as I've now added a description above, saving and loading from a disk is not feasible in my case as the number of EOPatches is huge. I'd prefer getting final results from the EOExecutor itself.

Thanks,
Divyani

Dear @divyanipatil,

the EOExecutor is moody sometimes, or at least this is what we noticed. You could try executing the last processing chain in the standard workflow and not with the executor, in the same way as the workflows before, in the same notebook.

See also this comment in #73

from eo-learn.

divyanipatil avatar divyanipatil commented on July 19, 2024

Hi @mlubej
I think there's some miscommunication. I was wondering why the return type of EOExecutor.run() is None. This specific use case of mine requires run() to return the WorkflowResult object obtained from execution of the Workflow.

Currently, this is how the method looks:

 def _execute_workflow(cls, process_args):
    workflow, input_args, log_path = process_args

    if log_path:
        logger = logging.getLogger()
        logger.setLevel(logging.DEBUG)
        handler = cls._get_log_handler(log_path)
        logger.addHandler(handler)

    stats = {'start_time': dt.datetime.now()}
    try:
        _ = workflow.execute(input_args, monitor=True)
    except BaseException:
       stats['error'] = traceback.format_exc()
    stats['end_time'] = dt.datetime.now()

    if log_path:
        handler.close()
        logger.removeHandler(handler)
    return stats

And this is how I require it to be:

 def _execute_workflow(cls, process_args):
    workflow, input_args, log_path = process_args

    if log_path:
        logger = logging.getLogger()
        logger.setLevel(logging.DEBUG)
        handler = cls._get_log_handler(log_path)
        logger.addHandler(handler)

    stats = {'start_time': dt.datetime.now()}
    try:
        result = workflow.execute(input_args, monitor=True)
    except BaseException:
       stats['error'] = traceback.format_exc()
    stats['end_time'] = dt.datetime.now()

    if log_path:
        handler.close()
        logger.removeHandler(handler)
    return result, stats

from eo-learn.

mlubej avatar mlubej commented on July 19, 2024

@AleksMat was there a specific reason for the above implementation of EOExecutor? I also think that getting the resulting WorkflowResults would be good :)

@divyanipatil It seems that you already exactly know what you want, so it would be great if you could do a pull request and contribute yourself!

Thanks!

from eo-learn.

divyanipatil avatar divyanipatil commented on July 19, 2024

@AleksMat was there a specific reason for the above implementation of EOExecutor? I also think that getting the resulting WorkflowResults would be good :)

This is exactly what i need to know, any specific reason the current implementation of EOExecutor. If not, I could go ahead and raise a PR for same.
Thank you so much!

from eo-learn.

mlubej avatar mlubej commented on July 19, 2024

Please, go ahead and create a PR! If you need it, then there is value in it. We can discuss the details later.

Thank you so much for contributing!

from eo-learn.

azupanc avatar azupanc commented on July 19, 2024

@divyanipatil @mlubej An alternative perhaps is to add at the end of the EOWorkflow a task that will either:

  • delete everything except results in the EOPatch and save it to disk
  • move results from an EOPatch to a new one and save it to disk

In both cases you'll end up with a light EOPatch that will contain only the feature that you're interested in (i.e. results of a classification) and will not require large amounts of storage.

from eo-learn.

divyanipatil avatar divyanipatil commented on July 19, 2024

In both cases you'll end up with a light EOPatch that will contain only the feature that you're interested in (i.e. results of a classification) and will not require large amounts of storage.

Hi @azupanc
As my use-case is semantic segmentation, the result would be an array of values, not a single classification category, hence storing and loading from disk is not feasible.

from eo-learn.

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.