Skip to content

Commit

Permalink
Preload the bodipix model so that hopefully now it's quicker.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Jul 3, 2024
1 parent 3c20212 commit 79b88cf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
import rospkg

# model cache
loaded_models = {}
# preload resnet 50 model so that it won't waste the time
# doing that in the middle of the task.
loaded_models = {
"resnet50": load_model(BodyPixModelPaths.RESNET50_FLOAT_STRIDE_16)
}
r = rospkg.RosPack()


Expand Down

0 comments on commit 79b88cf

Please sign in to comment.