Megvii-BaseDetection / Megvii-BaseDetection/OTA

Training Error

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
246
Forks
24
PR merge metrics
No merged PRs in 30d

Description

I met a unexpected error ,shown as :
2022-08-31 17:30:53 | ERROR | cvpods.engine.launch:64 - An error has been caught in function 'launch', process 'MainProcess' (1731), thread 'MainThread' (140323764021056):
Traceback (most recent call last):

File "/root/cvpods/tools/train_net.py", line 157, in
launch(
└ <function launch at 0x7f9d54537040>

File "/root/cvpods/cvpods/engine/launch.py", line 64, in launch
main_func(*args)
│ └ (Namespace(clearml=False, dir='atss/atss.res50.fpn.coco.800size.1x/', dist_url='tcp://127.0.0.1:49152', eval_only=False, mach...
└ <function main at 0x7f9d54553b80>

File "/root/cvpods/tools/train_net.py", line 89, in main
runner.resume_or_load(resume=args.resume)
│ │ │ └ False
│ │ └ Namespace(clearml=False, dir='atss/atss.res50.fpn.coco.800size.1x/', dist_url='tcp://127.0.0.1:49152', eval_only=False, machi...
│ └ <function DefaultRunner.resume_or_load at 0x7f9d545531f0>
└ <cvpods.engine.runner.DefaultRunner object at 0x7f9d545a77c0>

File "/root/cvpods/cvpods/engine/runner.py", line 172, in resume_or_load
self.start_iter = (self.checkpointer.resume_or_load(
│ │ │ │ └ <function Checkpointer.resume_or_load at 0x7f9e113c78b0>
│ │ │ └ <cvpods.checkpoint.checkpoint.DefaultCheckpointer object at 0x7f9cc6676730>
│ │ └ <cvpods.engine.runner.DefaultRunner object at 0x7f9d545a77c0>
│ └ 0
└ <cvpods.engine.runner.DefaultRunner object at 0x7f9d545a77c0>

File "/root/cvpods/cvpods/checkpoint/checkpoint.py", line 177, in resume_or_load
return self.load(path)
│ │ └ 'detectron2://ImageNetPretrained/MSRA/R-50.pkl'
│ └ <function Checkpointer.load at 0x7f9e113c7670>
└ <cvpods.checkpoint.checkpoint.DefaultCheckpointer object at 0x7f9cc6676730>

File "/root/cvpods/cvpods/checkpoint/checkpoint.py", line 112, in load
assert megfile.smart_isfile(path), "Checkpoint {} not found!".format(path)
│ │ │ └ 'detectron2://ImageNetPretrained/MSRA/R-50.pkl'
│ │ └ 'detectron2://ImageNetPretrained/MSRA/R-50.pkl'
│ └ <function smart_isfile at 0x7f9e114143a0>
└ <module 'megfile' from '/usr/local/lib/python3.8/dist-packages/megfile/init.py'>

File "/usr/local/lib/python3.8/dist-packages/megfile/smart.py", line 101, in smart_isfile
return SmartPath(path).is_file(followlinks=followlinks)
│ │ └ False
│ └ 'detectron2://ImageNetPretrained/MSRA/R-50.pkl'
└ <class 'megfile.smart_path.SmartPath'>

File "/usr/local/lib/python3.8/dist-packages/megfile/smart_path.py", line 14, in smart_method
return getattr(self.pathlike, name)(*args, **kwargs)
│ │ │ │ └ {'followlinks': False}
│ │ │ └ ()
│ │ └ 'is_file'
│ └ Detectron2Path('ImageNetPretrained/MSRA/R-50.pkl')
└ SmartPath('detectron2://ImageNetPretrained/MSRA/R-50.pkl')

TypeError: is_file() got an unexpected keyword argument 'followlinks'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the training entry point in tools/train_net.py, then trace checkpoint loading through cvpods/engine/runner.py and cvpods/checkpoint/checkpoint.py. Check the failing megfile SmartPath call and verify that training can load detectron2://ImageNetPretrained/MSRA/R-50.pkl without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.