CannyLab / vdtk

Visual Description Dataset Analysis Toolkit
MIT License
10 stars 2 forks source link

Properly handle the cache and temp files in spice #9

Closed xk-huang closed 1 year ago

xk-huang commented 1 year ago

If there are multiple jobs running spice, then all the cache data are written to the same cache file. Besides, we could handle the temp file better with context manager in case of any error encountered or any abortion catched, the temp files will finally be removed.