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
vision
Commits
e1c49faf
Unverified
Commit
e1c49faf
authored
Feb 22, 2021
by
Nicolas Hug
Committed by
GitHub
Feb 22, 2021
Browse files
Removed call to optimze_for_mobile (#3424)
* removed call to optimze_for_mobile * removed unrelated changes
parent
62e185c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
android/test_app/make_assets.py
android/test_app/make_assets.py
+3
-3
No files found.
android/test_app/make_assets.py
View file @
e1c49faf
import
torch
import
torchvision
from
torch.utils.mobile_optimizer
import
optimize_for_mobile
print
(
torch
.
__version__
)
...
...
@@ -13,5 +12,6 @@ model = torchvision.models.detection.fasterrcnn_mobilenet_v3_large_320_fpn(
model
.
eval
()
script_model
=
torch
.
jit
.
script
(
model
)
opt_script_model
=
optimize_for_mobile
(
script_model
)
opt_script_model
.
save
(
"app/src/main/assets/frcnn_mnetv3.pt"
)
# TODO: put back call to optimize_for_mobile once
# https://github.com/pytorch/pytorch/issues/52463 is fixed
script_model
.
save
(
"app/src/main/assets/frcnn_mnetv3.pt"
)
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