Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
I Found An Interesting Error. If I Run The Following:

I found an interesting error.

If I run the following:

# Load the model from remote storage if model_url is provided
    if cfg.clearml.get("model_url", None):
        # Get the model info from the remote storage
        input_model = InputModel().import_model(weights_url=cfg.clearml.model_url)

        # connect the model to the current task
        input_model.connect(task)

        # download the model to a temporary local folder
        model_path = input_model.get_local_copy()

and then run:

task.get_models()

I get:

{'input': [], 'output': []}

However, if I run the input_model.connect() twice:

# Load the model from remote storage if model_url is provided
    if cfg.clearml.get("model_url", None):
        # Get the model info from the remote storage
        input_model = InputModel().import_model(weights_url=cfg.clearml.model_url)

        # connect the model to the current task
        input_model.connect(task)
        input_model.connect(task)

        # download the model to a temporary local folder
        model_path = input_model.get_local_copy()

Then task.get_models() works:

task.get_models()
{'input': [<clearml.model.Model object at 0x7f96b3885f30>], 'output': []}

I tested it the other way as well, using the task to connect the input_model():

# Load the model from remote storage if model_url is provided
    if cfg.clearml.get("model_url", None):
        # Get the model info from the remote storage
        input_model = InputModel().import_model(weights_url=cfg.clearml.model_url)

        # connect the model to the current task
        task.connect(input_model)

        # download the model to a temporary local folder
        model_path = input_model.get_local_copy()

Same issue. I want to make sure this is indeed a bug before I report it on the repo.

  
  
Posted one year ago
Votes Newest

Answers


Hi @<1545216070686609408:profile|EnthusiasticCow4>
hmm this seems odd, and definitely looks like a bug, please report on GH 🙏

  
  
Posted one year ago
1K Views
1 Answer
one year ago
one year ago
Tags
Similar posts