Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DDRNet-pytorch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nimra Jabeen
DDRNet-pytorch
Commits
b24dd302
Commit
b24dd302
authored
5 years ago
by
hsfzxjy
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug: remove unecessary assertion
parent
38e792c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/test.py
+0
-1
0 additions, 1 deletion
tools/test.py
with
0 additions
and
1 deletion
tools/test.py
+
0
−
1
View file @
b24dd302
...
...
@@ -82,7 +82,6 @@ def main():
pretrained_dict
=
torch
.
load
(
model_state_file
)
model_dict
=
model
.
state_dict
()
assert
set
(
k
[
6
:]
for
k
in
pretrained_dict
)
==
set
(
model_dict
)
pretrained_dict
=
{
k
[
6
:]:
v
for
k
,
v
in
pretrained_dict
.
items
()
if
k
[
6
:]
in
model_dict
.
keys
()}
for
k
,
_
in
pretrained_dict
.
items
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment