serhii.net

In the middle of the desert you can say anything you want

23 Feb 2021

Day 784

Force unmount / umount

One can use mount without arguments to get the list of mounted filesystems! o

Killing anything that uses a directory:1

fuser -kim /address  # kill any processes accessing file
unmount /address

(-k is kill, -i is “ask nicely before killing”)

Reproducibility / configs / experiments / yacs

rbgirshick/yacs: YACS – Yet Another Configuration System is a “lightweight library to define and manage system configurations, such as those commonly found in software designed for scientific experimentation”. It’s used by detectron2, serializes configs in yaml files. Nicely supports standard settings and experiment overrides and CLI overrides. Basically what I’ve been trying ot hack together in some of my scripts.

Detectron2 error with test set when none set.

Got: FileNotFoundError: [Errno 2] No such file or directory: 'datasets/coco/annotations/instances_val2017.json at the end of trainings.

Solution was to have cfg.DATASETS.TEST = () explicitly set, not commented out like I had. 2

so it’s a mystery why cfg.DATASETS.TEST is looking for datasets/coco/annotations/instances_val2017.json

Indeed.

Detectron2 evaluation

Example of how to use EvalHook to run functions: detectron2/train_net.py at master · facebookresearch/detectron2 (but I’d like to implement the eval as a subclass)

Nel mezzo del deserto posso dire tutto quello che voglio.