Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DL Object Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Bjørn Hyldgaard
DL Object Detection
Commits
a6656f63
Commit
a6656f63
authored
2 years ago
by
Jeppe Gade
Browse files
Options
Downloads
Patches
Plain Diff
Delete useless
parent
a1ec10bb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MobileNetV1.py
+1
-10
1 addition, 10 deletions
MobileNetV1.py
with
1 addition
and
10 deletions
MobileNetV1.py
+
1
−
10
View file @
a6656f63
...
...
@@ -3,20 +3,11 @@ import torch
import
torch.nn
as
nn
import
torch.nn.functional
as
F
from
torchsummary
import
summary
import
requests
from
PIL
import
Image
from
io
import
BytesIO
from
torchvision
import
transforms
import
numpy
as
np
import
pandas
as
pd
import
os
#from pycocotools.coco import COCO
import
skimage.io
as
io
import
matplotlib.pyplot
as
plt
from
pathlib
import
Path
from
coco_utils
import
get_image
...
...
@@ -52,6 +43,6 @@ if __name__=="__main__":
#Run entire thing
input_image
=
get_image
(
"
http://images.cocodataset.org/val2017/000000148783.jpg
"
)
output
=
runCNN
(
input_image
)
output
.
shape
print
(
output
.
shape
)
#Shape of output:
#torch.Size([1, 1280, 7, 7])
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment