Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
MPAI-NNW
ReferenceSoftwareV12
Commits
6b23cdc1
Commit
6b23cdc1
authored
Jul 02, 2024
by
Carl De Sousa Trias
Browse files
Updates name of the AIM "TextandImageQuery" (Case3)
parent
8f564ddc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Case3/all_AIW/AIW_MQA-NNW/AIMs_files.py
View file @
6b23cdc1
...
...
@@ -22,14 +22,14 @@ from playsound import playsound
class
QuestionAnswering
():
class
TextandImageQuery
():
QuestionText
=
None
RawImage
=
None
##
AnswerText
=
None
def
func
QuestionAnswering
(
self
,
raw_image_path
,
question
):
def
func
TextandImageQuery
(
self
,
raw_image_path
,
question
):
'''
Apply an NN to answer the question
'''
...
...
@@ -40,7 +40,7 @@ class QuestionAnswering():
return
output
[
'answer'
]
def
run
(
self
):
self
.
AnswerText
=
self
.
func
QuestionAnswering
(
self
.
RawImage
,
self
.
QuestionText
)
self
.
AnswerText
=
self
.
func
TextandImageQuery
(
self
.
RawImage
,
self
.
QuestionText
)
class
SpeechRecognition
():
QuestionAudio
=
None
...
...
Case3/all_AIW/AIW_MQA-NNW/QuestionAnwseringSR.json
View file @
6b23cdc1
...
...
@@ -64,13 +64,13 @@
],
"SubAIMs"
:
[
{
"Name"
:
"
QuestionAnswering
"
,
"Name"
:
"
TextandImageQuery
"
,
"Identifier"
:
{
"ImplementerID"
:
"/* String assigned by IIDRA */"
,
"Specification"
:
{
"Standard"
:
"MPAI-NNW"
,
"AIW"
:
"NNW-QAUsage"
,
"AIM"
:
"
QuestionAnswering
"
,
"AIM"
:
"
TextandImageQuery
"
,
"Version"
:
"1"
}
}
...
...
@@ -118,7 +118,7 @@
"PortName"
:
"QuestionText"
},
"Input"
:{
"AIMName"
:
"
QuestionAnswering
"
,
"AIMName"
:
"
TextandImageQuery
"
,
"PortName"
:
"QuestionText"
}
},
...
...
@@ -128,13 +128,13 @@
"PortName"
:
"RawImage"
},
"Input"
:{
"AIMName"
:
"
QuestionAnswering
"
,
"AIMName"
:
"
TextandImageQuery
"
,
"PortName"
:
"RawImage"
}
},
{
"Output"
:{
"AIMName"
:
"
QuestionAnswering
"
,
"AIMName"
:
"
TextandImageQuery
"
,
"PortName"
:
"AnswerText"
},
"Input"
:{
...
...
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