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

.pth로 된 모델에서 weights만 불러오기 #16

Closed
minji-o-j opened this issue Apr 21, 2021 · 0 comments
Closed

.pth로 된 모델에서 weights만 불러오기 #16

minji-o-j opened this issue Apr 21, 2021 · 0 comments

Comments

@minji-o-j
Copy link
Owner

# If specified we start from checkpoint
if opt.pretrained_weights:
if opt.pretrained_weights.endswith(".pth"):
model.load_state_dict(torch.load(opt.pretrained_weights))
else:
model.load_darknet_weights(opt.pretrained_weights)

@minji-o-j minji-o-j pinned this issue Apr 21, 2021
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