Coder Social home page Coder Social logo

Comments (2)

blaz-r avatar blaz-r commented on August 21, 2024 1

Hi, this is a bit unfortunate and also causes issues on Windows. A workaround current is to comment out this section if symlink is not supported:

# Update the 'latest' symbolic link to point to the new version directory
latest_link_path = root_dir / "latest"
if latest_link_path.is_symlink() or latest_link_path.exists():
latest_link_path.unlink()
latest_link_path.symlink_to(new_version_dir, target_is_directory=True)
return latest_link_path

and return new_version_dir

from anomalib.

CarlosNacher avatar CarlosNacher commented on August 21, 2024

Hey, I have a related issue. It is not exactly the same but related with symlink: if I fit N models parallelly (as I have > 1 GPU and I run in different terminals the train code with different CUDA_VISIBLE_DEVICES env variable), as for each a new versioned_dir is created and this is symlinked with "latest" dir, my checkpoints don't know where to log, as each fit proccess unlinks the "latest" symlinked dir from the previous one, thus all checkpoints are logged in "latest" dir which is linked with the latests version of directories.

Maybe is it better to always return new_version_dir for the checkpoints to be logged always in numbered versiones dir? This will end up with a "latest" dir with only the actually "latests" process logged stuff, but each process will have logged in its versioned dir.

from anomalib.

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.