Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dcnv3
Commits
8e2cb4fa
Commit
8e2cb4fa
authored
Jan 16, 2025
by
zhe chen
Browse files
Fix onnx export (#239)
parent
80069cad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
classification/export.py
classification/export.py
+1
-1
classification/ops_dcnv3/functions/dcnv3_func.py
classification/ops_dcnv3/functions/dcnv3_func.py
+1
-1
No files found.
classification/export.py
View file @
8e2cb4fa
...
@@ -19,7 +19,7 @@ def get_args():
...
@@ -19,7 +19,7 @@ def get_args():
parser
.
add_argument
(
'--model_name'
,
type
=
str
,
parser
.
add_argument
(
'--model_name'
,
type
=
str
,
default
=
'internimage_t_1k_224'
)
default
=
'internimage_t_1k_224'
)
parser
.
add_argument
(
'--ckpt_dir'
,
type
=
str
,
parser
.
add_argument
(
'--ckpt_dir'
,
type
=
str
,
default
=
'
/mnt/petrelfs/share_data/huangzhenhang/code/internimage/checkpoint_dir/new/cls
'
)
default
=
'
pretrained/
'
)
parser
.
add_argument
(
'--onnx'
,
default
=
False
,
action
=
'store_true'
)
parser
.
add_argument
(
'--onnx'
,
default
=
False
,
action
=
'store_true'
)
parser
.
add_argument
(
'--trt'
,
default
=
False
,
action
=
'store_true'
)
parser
.
add_argument
(
'--trt'
,
default
=
False
,
action
=
'store_true'
)
...
...
classification/ops_dcnv3/functions/dcnv3_func.py
View file @
8e2cb4fa
...
@@ -100,7 +100,7 @@ class DCNv3Function(Function):
...
@@ -100,7 +100,7 @@ class DCNv3Function(Function):
group_channels_i
=
int
(
group_channels
),
group_channels_i
=
int
(
group_channels
),
offset_scale_f
=
float
(
offset_scale
),
offset_scale_f
=
float
(
offset_scale
),
im2col_step_i
=
int
(
im2col_step
),
im2col_step_i
=
int
(
im2col_step
),
remove_center
=
int
(
remove_center
),
remove_center
_i
=
int
(
remove_center
),
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment