Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Okan DÜZYEL
Image Captioning
Commits
cc603de5
Commit
cc603de5
authored
1 year ago
by
Okan DÜZYEL
Browse files
Options
Download
Email Patches
Plain Diff
Upload New File
parent
d82794c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test.py
+54
-0
test.py
with
54 additions
and
0 deletions
+54
-0
test.py
0 → 100644
+
54
-
0
View file @
cc603de5
"""
Created on Sat May 30 12:00:11 2023
@author: okanduzyel
"""
import
time
import
memri_label_image
from
PIL
import
Image
myImage
=
Image
.
open
(
'./images/IMG_1007.jpeg'
)
start
=
time
.
time
()
Label1
=
memri_label_image
.
LabelImage
.
withMobilevit
(
myImage
)
print
(
"1:"
,
Label1
)
end
=
time
.
time
()
print
(
"Processing time:"
,
end
-
start
)
start
=
time
.
time
()
Label2
=
memri_label_image
.
LabelImage
.
withBert
(
myImage
)
print
(
"2:"
,
Label2
)
end
=
time
.
time
()
print
(
"Processing time:"
,
end
-
start
)
start
=
time
.
time
()
Label3
=
memri_label_image
.
LabelImage
.
withOcr
(
myImage
)
print
(
"3:"
,
Label3
)
end
=
time
.
time
()
print
(
"Processing time:"
,
end
-
start
)
start
=
time
.
time
()
Label4
=
memri_label_image
.
LabelImage
.
withImageTotext
(
myImage
)
print
(
"4:"
,
Label4
)
end
=
time
.
time
()
print
(
"Processing time:"
,
end
-
start
)
start
=
time
.
time
()
Label5
=
memri_label_image
.
LabelImage
.
withOcrMSbased
(
myImage
)
print
(
"5:"
,
Label5
)
end
=
time
.
time
()
print
(
"Processing time:"
,
end
-
start
)
start
=
time
.
time
()
Label6
=
memri_label_image
.
LabelImage
.
withVqa
(
'./images/IMG_1007.jpeg'
)
#
print
(
"6:"
,
Label6
)
end
=
time
.
time
()
print
(
"Processing time:"
,
end
-
start
)
start
=
time
.
time
()
Label7
=
memri_label_image
.
LabelImage
.
withBipin
(
myImage
)
print
(
"7:"
,
Label7
)
end
=
time
.
time
()
print
(
"Processing time:"
,
end
-
start
)
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets