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
Hi, In My Code I Have Some Functions I Call From A Different Folder From My Original Project But Is In The Same Repository, When I Run The Following Code Locally:

Hi, In my code i have some functions i call from a different folder from my original project but is in the same repository, when i run the following code locally:

import sys, os
sys.path.append(os.path.abspath(os.path.join('..', 'utils')))
from utils import augmentations

it works, but when i try to run the code from a clearML agent i get the following error that is shown in the log.
Does anybody know of a way i can do import from a different folder into my project that will work both locally and with clearML?
Thank you in advance.

  
  
Posted one year ago
Votes Newest

Answers 3


Hi @<1523701070390366208:profile|CostlyOstrich36> , Here is a better explanation of my situation, in my IDE the working directory is where my code starts and I'm importing from common_utils my custom augmentations and locally the code is working with the import I've added in my previous message, however when i run from ClearML agent the import from point a to point b isn't working however they are both in the same git repo and i don't want to copy the files into project_1 as to not have unnecessary duplicates of code.
so is there a way to link the necessary files to my working directory for ClearML agent?
I hope this explantation gives you a better understanding of my problem.

git_repo
├── project_1 (working directory)
│   └── traing.py (starting point)
│   └── src
│       └── input_pipeline.py (point a)
└── project_2
|   └── some_folder
|       └── some_file.py
└── common_utils
    └── augmentations.py (point b)
  
  
Posted one year ago

Hi @<1523701295830011904:profile|CluelessFlamingo93> , when running remotely the agent assumes it will be a different machine. I think the best way to solve this is to add utils to your repository and import it from there during code execution.

What do you think?

  
  
Posted one year ago

Hi, @<1523701295830011904:profile|CluelessFlamingo93> . Did you solve this problem? I think it is similar to mine, and I can't figure out a proper solution

  
  
Posted one year ago
1K Views
3 Answers
one year ago
one year ago
Tags
Similar posts