Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

权重文件的百度网盘分享链接已经过期 #7

Open
little-spoon opened this issue Oct 17, 2023 · 2 comments
Open

权重文件的百度网盘分享链接已经过期 #7

little-spoon opened this issue Oct 17, 2023 · 2 comments

Comments

@little-spoon
Copy link

little-spoon commented Oct 17, 2023

您好,我想请问一下在训练此模型的时候必须要使用pretrain_weight吗?
但是你们分享的百度网盘链接已经过期了,能否延长它的有效期呢?
如果这个可以不使用预训练权重的话,是否直接 pretrain_weight = None 就可以了呢?但似乎这么做了以后会报类型错误,如下:

Traceback (most recent call last):
  File "./tools/train.py", line 220, in <module>
    main()
  File "./tools/train.py", line 194, in main
    model.init_weights()
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/runner/base_module.py", line 117, in init_weights
    m.init_weights()
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/runner/base_module.py", line 106, in init_weights
    initialize(self, self.init_cfg)
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/cnn/utils/weight_init.py", line 636, in initialize
    _initialize(module, cp_cfg)
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/cnn/utils/weight_init.py", line 539, in _initialize
    func(module)
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/cnn/utils/weight_init.py", line 520, in __call__
    self.prefix, self.checkpoint, map_location=self.map_location)
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 593, in _load_checkpoint_with_prefix
    checkpoint = _load_checkpoint(filename, map_location=map_location)
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 572, in _load_checkpoint
    return CheckpointLoader.load_checkpoint(filename, map_location, logger)
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 310, in load_checkpoint
    checkpoint_loader = cls._get_checkpoint_loader(filename)
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 287, in _get_checkpoint_loader
    if re.match(p, path) is not None:
  File "/home/host/mounted2/anaconda3/envs/mm-new/lib/python3.7/re.py", line 175, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object

@ghost
Copy link

ghost commented Oct 17, 2023

May you can try this link again (https://pan.baidu.com/s/1JGsvlvzPkb5nxGBaRSD7ng?pwd=hx8k 提取码:hx8k)

@little-spoon
Copy link
Author

little-spoon commented Oct 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant