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

optimize the tools/model_converters/convert_kd_ckpt_to_student.py file #647

Merged
merged 63 commits into from
Mar 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
b9e032f
correct the scale_factor and pad_param value in LetterResize
tang576225574 Dec 18, 2022
45d331b
correct the scale_factor and pad_param value in LetterResize
tang576225574 Dec 18, 2022
bfe864d
correct the scale_factor and pad_param value in LetterResize
tang576225574 Dec 18, 2022
446213d
correct the scale_factor and pad_param value in LetterResize
tang576225574 Dec 18, 2022
acc89af
tang
tang576225574 Dec 25, 2022
8eac57a
update
hhaAndroid Dec 27, 2022
6ee6391
tang
tang576225574 Dec 28, 2022
db07087
tang
tang576225574 Dec 28, 2022
9baf66f
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Dec 28, 2022
ac39449
tang
tang576225574 Dec 28, 2022
6a75391
fix linting
tang576225574 Dec 28, 2022
45a6b6f
tang
tang576225574 Dec 28, 2022
c489ec0
tang
tang576225574 Dec 28, 2022
e6b0391
tang
tang576225574 Jan 1, 2023
b1b0333
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Jan 1, 2023
f3f18b6
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Jan 9, 2023
04fa350
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Jan 10, 2023
cbb7c71
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Jan 11, 2023
ff45117
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Feb 5, 2023
1687265
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Feb 16, 2023
0df6086
add print registers
tang576225574 Feb 16, 2023
fd46d90
add print registers
tang576225574 Feb 16, 2023
c70c97c
add print registers
tang576225574 Feb 16, 2023
6997cae
add print registers
tang576225574 Feb 16, 2023
244d0ee
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Feb 16, 2023
aeeabfe
Merge branch 'dev' into tang
tang576225574 Feb 16, 2023
86a55c6
add print registers
tang576225574 Feb 16, 2023
e92c30d
tang
tang576225574 Feb 23, 2023
b153db7
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Feb 23, 2023
5804e89
tang v1 finished
tang576225574 Feb 24, 2023
47a5e9a
tang
tang576225574 Feb 26, 2023
b708d5b
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Feb 28, 2023
07f5c1a
print registers v1.2
tang576225574 Feb 28, 2023
a00bb43
update
hhaAndroid Feb 28, 2023
3f745ab
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Feb 28, 2023
fd86928
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Feb 28, 2023
91cefc7
tang
tang576225574 Feb 28, 2023
a5127a8
update version
tang576225574 Feb 28, 2023
108578c
update
tang576225574 Feb 28, 2023
c8c31d7
update
tang576225574 Feb 28, 2023
db2e3fd
update
hhaAndroid Feb 28, 2023
7b2e32b
remove exclude_prefix
tang576225574 Feb 28, 2023
c87f08b
Merge branch 'tang' of https://github.com/tang576225574/mmyolo into tang
tang576225574 Feb 28, 2023
fe4d6e4
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Feb 28, 2023
e8b94b5
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Feb 28, 2023
046a445
Merge branch 'dev' into tang
tang576225574 Mar 1, 2023
060d05e
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Mar 2, 2023
caa246e
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Mar 2, 2023
d0c8a51
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Mar 6, 2023
260724c
Merge branch 'dev' into tang
tang576225574 Mar 6, 2023
c6965bc
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Mar 7, 2023
4dfcc67
Merge branch 'dev' into tang
tang576225574 Mar 7, 2023
b7a53b7
swap the val pipeline for visualization
tang576225574 Mar 7, 2023
04f3529
swap the val pipeline for visualization
tang576225574 Mar 7, 2023
384c089
swap the val pipeline for visualization
tang576225574 Mar 7, 2023
062a85a
swap the val pipeline for visualization
tang576225574 Mar 8, 2023
8ff793f
swap the val pipeline for visualization
tang576225574 Mar 8, 2023
1f3306a
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into tang
tang576225574 Mar 8, 2023
e5aef0e
Merge branch 'dev' of https://github.com/open-mmlab/mmyolo into dev
tang576225574 Mar 8, 2023
730210f
Merge branch 'dev' into tang
tang576225574 Mar 8, 2023
4e99611
optimize the convert_kd_ckpt_to_student file
tang576225574 Mar 8, 2023
6ef7d70
optimize the convert_kd_ckpt_to_student file
tang576225574 Mar 8, 2023
a56ab01
optimize the tools/model_converters/convert_kd_ckpt_to_student.py file
tang576225574 Mar 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix linting
  • Loading branch information
tang576225574 committed Dec 28, 2022
commit 6a753910bc01cad0fd9e7e4ffc331f0d80d3f37f
6 changes: 4 additions & 2 deletions tests/test_datasets/test_transforms/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ def test_letter_resize(self):
self.assertIn('pad_param', data_info)
pad_param = data_info['pad_param'].reshape(-1, 2).sum(1)
scale_factor = np.asarray(data_info['scale_factor'])
self.assertTrue((np.ceil((data_info["img_shape"][:2] - pad_param + 1.) / scale_factor)
self.assertTrue((np.ceil((data_info["img_shape"][:2] - pad_param
+ 1.) / scale_factor)
>= (input_h, input_w)).all())
self.assertTrue((np.floor((data_info["img_shape"][:2] - pad_param - 1.) / scale_factor)
self.assertTrue((np.floor((data_info["img_shape"][:2] - pad_param
- 1.) / scale_factor)
<= (input_h, input_w)).all())


Expand Down