Comments (2)
Hey @luispsantos! Thanks a lot for opening the issue. The resource cleanup is a kind of a messy area currently, as we have done some magic tricks to close the run resources implicitly as well. We'll revisit that in the upcoming releases as we have some other issues there as well. But for now the below script should do the job:
from aim import Run, Repo
repo = Repo.from_path('.')
run = Run(repo=repo)
exception_occurred = False
try:
... # complex code for ML experiments
1 / 0 # simulate exception being raised
except:
exception_occurred = True
finally:
run.finalize()
run.close()
run_hash = run.hash
run = None
if exception_occurred:
repo.delete_run(run_hash)
print(f"Run {run_hash} discarded")
from aim.
Hi @mihran113. Thanks a lot for your fix, this indeed fixed my issue! The current way of discarding runs is not very straightforward in my opinion, but I guess there'll be a rework of this on future releases. We can close this ticket 👍
from aim.
Related Issues (20)
- Securing Aim Remote Tracking server using SSL key and certificate HOT 3
- Aim tensorboard tracker stop logging metrics after certain number of epochs HOT 2
- [BUG] Stable-Baselines3 integration not working HOT 4
- AIM Client Process Termination Leaves Run in Active State HOT 3
- How is run status handled? HOT 1
- --no Option for Aim Init, Do not Clear Existing Repo if it Exists HOT 3
- Installation Issue [begineer] HOT 2
- Export svg and other formtas in parallel coordinates plot of PARAMS HOT 1
- RuntimeError: dictionary keys changed during iteration HOT 1
- Importing jax causes exception that is ignored HOT 2
- Tracking simple metrics in remote server is really slow HOT 4
- Add Relative Time To Table View in Metrics Panel
- Show All Columns in the Manage Columns Popover
- How do you get the git commit hash from a run when queried from a repository? HOT 2
- docs for `up` and `server` are mis-formatted
- Difficulty Managing Dependencies in React Projects
- TypeError raised when accessing run.active after calling run.close() HOT 1
- Accessing remote tracking server since move to http based transport server HOT 1
- Typo: `errorsRocksIOError` vs `errors.RocksIOError` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aim.