Skip to content

Commit

Permalink
fix(pre_commit): 🎨 auto format pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 30, 2024
1 parent 07e2345 commit d3ffb3b
Show file tree
Hide file tree
Showing 8 changed files with 2,436 additions and 2,440 deletions.
2 changes: 1 addition & 1 deletion models/object_detection/d-fine/results_D‑FINE‑L.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
0.8999999999999999,
0.95
]
}
}
2 changes: 1 addition & 1 deletion models/object_detection/d-fine/results_D‑FINE‑M.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
0.8999999999999999,
0.95
]
}
}
2 changes: 1 addition & 1 deletion models/object_detection/d-fine/results_D‑FINE‑N.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
0.8999999999999999,
0.95
]
}
}
2 changes: 1 addition & 1 deletion models/object_detection/d-fine/results_D‑FINE‑S.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
0.8999999999999999,
0.95
]
}
}
2 changes: 1 addition & 1 deletion models/object_detection/d-fine/results_D‑FINE‑X.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
0.8999999999999999,
0.95
]
}
}
6 changes: 1 addition & 5 deletions models/object_detection/d-fine/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
from pathlib import Path
from typing import List, Optional
import gc

import supervision as sv
import torch
import torch.nn as nn
Expand Down Expand Up @@ -149,7 +149,6 @@ def run(
else:
raise AttributeError("Only support resume to load model.state_dict by now.")


cfg.model.load_state_dict(state)

class Model(nn.Module):
Expand All @@ -165,7 +164,6 @@ def forward(self, images, orig_target_sizes):

model = Model().to(DEVICE)


predictions = []
targets = []
print("Evaluating...")
Expand All @@ -192,8 +190,6 @@ def forward(self, images, orig_target_sizes):
)




if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion static/aggregate_results.js
Original file line number Diff line number Diff line change
Expand Up @@ -2427,4 +2427,4 @@ const results = [
0.95
]
}
];
];
Loading

0 comments on commit d3ffb3b

Please sign in to comment.