MCG-NJU/AdaMixer

work_dirs files

sanmulab opened this issue · 2 comments

Hello author! When I'm training, work_dirs will generate all the configs and mmdet files, is this necessary? If it is not necessary, how can I turn off this setting?

You can comment off

AdaMixer/tools/train.py

Lines 152 to 162 in 50223e0

if args.local_rank == 0:
import shutil
import os
if os.path.exists(cfg.work_dir + '/mmdet'):
shutil.rmtree(cfg.work_dir + '/mmdet')
if os.path.exists(cfg.work_dir + '/config'):
shutil.rmtree(cfg.work_dir + '/config')
shutil.copytree('./mmdet', cfg.work_dir + '/mmdet')
shutil.copytree('./configs', cfg.work_dir + '/config')
to turn off this settings.

OK, thank you!