Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-029
2023-029
Commits
4125f52b
Commit
4125f52b
authored
Sep 05, 2023
by
Gamage B.G.J
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT20254384' into 'master'
Merge changes - IT20254384 See merge request
!20
parents
60d92c17
129c8db5
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1021 additions
and
992 deletions
+1021
-992
Project/Backend/Server_Node/yarn.lock
Project/Backend/Server_Node/yarn.lock
+984
-985
Project/Backend/Server_Python/app.log
Project/Backend/Server_Python/app.log
+20
-0
Project/Backend/Server_Python/controllers/translate_controler.py
.../Backend/Server_Python/controllers/translate_controler.py
+10
-1
Project/Backend/Server_Python/requirements.txt
Project/Backend/Server_Python/requirements.txt
+2
-1
Project/Frontend/SignConnectPlus/src/pages/ssl-translate/process/process.tsx
...gnConnectPlus/src/pages/ssl-translate/process/process.tsx
+3
-3
Project/Frontend/SignConnectPlus/src/utils/locales/en.json
Project/Frontend/SignConnectPlus/src/utils/locales/en.json
+2
-2
No files found.
Project/Backend/Server_Node/yarn.lock
View file @
4125f52b
This diff is collapsed.
Click to expand it.
Project/Backend/Server_Python/app.log
View file @
4125f52b
...
@@ -37,3 +37,23 @@
...
@@ -37,3 +37,23 @@
2023-08-03 06:00:41,626 - INFO - Error.
2023-08-03 06:00:41,626 - INFO - Error.
2023-08-03 06:00:41,626 - INFO - Error.
2023-08-03 06:00:41,626 - INFO - Error.
2023-08-03 06:00:41,626 - INFO - Error.
2023-08-03 06:00:41,626 - INFO - Error.
2023-08-30 22:39:49,234 - INFO - Failed to make predictions. [Errno 2] No such file or directory: 'files/2023-08-14 21.51.mov'
2023-08-30 22:39:49,234 - INFO - Failed to make predictions. [Errno 2] No such file or directory: 'files/2023-08-14 21.51.mov'
2023-08-30 22:39:49,234 - INFO - Failed to make predictions. [Errno 2] No such file or directory: 'files/2023-08-14 21.51.mov'
2023-08-30 22:39:49,259 - INFO - Error.
2023-08-30 22:39:49,259 - INFO - Error.
2023-08-30 22:39:49,259 - INFO - Error.
2023-08-30 22:40:09,426 - INFO - Failed to make predictions. [Errno 2] No such file or directory: 'files/2023-08-14 21.51.mov'
2023-08-30 22:40:09,426 - INFO - Failed to make predictions. [Errno 2] No such file or directory: 'files/2023-08-14 21.51.mov'
2023-08-30 22:40:09,426 - INFO - Failed to make predictions. [Errno 2] No such file or directory: 'files/2023-08-14 21.51.mov'
2023-08-30 22:40:09,427 - INFO - Error.
2023-08-30 22:40:09,427 - INFO - Error.
2023-08-30 22:40:09,427 - INFO - Error.
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,627 - INFO - Error.
2023-09-02 18:07:23,627 - INFO - Error.
2023-09-02 18:07:23,627 - INFO - Error.
2023-09-02 18:07:23,627 - INFO - Error.
Project/Backend/Server_Python/controllers/translate_controler.py
View file @
4125f52b
import
os
from
fastapi
import
APIRouter
,
File
,
HTTPException
,
Query
,
UploadFile
from
fastapi
import
APIRouter
,
File
,
HTTPException
,
Query
,
UploadFile
from
pydantic
import
BaseModel
from
pydantic
import
BaseModel
import
tensorflow
as
tf
import
tensorflow
as
tf
...
@@ -18,7 +19,15 @@ class ImageRequest(BaseModel):
...
@@ -18,7 +19,15 @@ class ImageRequest(BaseModel):
# Load your Keras model
# Load your Keras model
# model = tf.keras.models.load_model('../ML_Models/sign_language_to_text/models/sign_language_model.h5')
# model = tf.keras.models.load_model('../ML_Models/sign_language_to_text/models/sign_language_model.h5')
model
=
None
model_file_path
=
'../ML_Models/sign_language_to_text/models/sign_language_model.h5'
# Check if the model file exists
if
os
.
path
.
exists
(
model_file_path
):
# Load the Keras model if the file exists
model
=
tf
.
keras
.
models
.
load_model
(
model_file_path
)
else
:
model
=
None
CLASSES
=
mappings
.
classes
CLASSES
=
mappings
.
classes
NUM_CLASSES
=
len
(
mappings
.
classes
)
# number of classes
NUM_CLASSES
=
len
(
mappings
.
classes
)
# number of classes
IMG_SIZE
=
224
# image size
IMG_SIZE
=
224
# image size
...
...
Project/Backend/Server_Python/requirements.txt
View file @
4125f52b
...
@@ -7,3 +7,4 @@ moviepy==1.0.3
...
@@ -7,3 +7,4 @@ moviepy==1.0.3
SpeechRecognition==3.10.0
SpeechRecognition==3.10.0
tk==0.1.0
tk==0.1.0
requests==2.31.0
requests==2.31.0
pymongo==4.5.0
\ No newline at end of file
Project/Frontend/SignConnectPlus/src/pages/ssl-translate/process/process.tsx
View file @
4125f52b
...
@@ -154,7 +154,7 @@ const Process = () => {
...
@@ -154,7 +154,7 @@ const Process = () => {
};
};
return
(
return
(
<>
<>
<
MainCard
content=
{
false
}
>
<
MainCard
content=
{
false
}
title=
"Translate Sinhala Sign Language into Text Here"
>
<
ScrollX
>
<
ScrollX
>
{
/* content here */
}
{
/* content here */
}
...
@@ -233,7 +233,7 @@ const Process = () => {
...
@@ -233,7 +233,7 @@ const Process = () => {
step=
{
10
}
step=
{
10
}
marks
marks
min=
{
10
}
min=
{
10
}
max=
{
1
1
0
}
max=
{
1
0
0
}
/>
/>
<
h4
>
Speed -
{
speed
}
</
h4
>
<
h4
>
Speed -
{
speed
}
</
h4
>
</
Grid
>
</
Grid
>
...
@@ -331,7 +331,7 @@ const Process = () => {
...
@@ -331,7 +331,7 @@ const Process = () => {
step=
{
10
}
step=
{
10
}
marks
marks
min=
{
10
}
min=
{
10
}
max=
{
1
1
0
}
max=
{
1
0
0
}
/>
/>
<
h4
>
Speed -
{
speed
}
</
h4
>
<
h4
>
Speed -
{
speed
}
</
h4
>
</
Grid
>
</
Grid
>
...
...
Project/Frontend/SignConnectPlus/src/utils/locales/en.json
View file @
4125f52b
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
"learning-curriculums-subscribed"
:
"My Courses"
,
"learning-curriculums-subscribed"
:
"My Courses"
,
"learning-lead-board"
:
"Lead Board"
,
"learning-lead-board"
:
"Lead Board"
,
"learning-feedback"
:
"Feedback"
,
"learning-feedback"
:
"Feedback"
,
"ssl-translate"
:
"SSL Translat
e
"
,
"ssl-translate"
:
"SSL Translat
ion
"
,
"emotion-detection"
:
"Emotion Detection"
,
"emotion-detection"
:
"Emotion Detection"
,
"audio-detection"
:
"Audio Detection"
,
"audio-detection"
:
"Audio Detection"
,
"video-detection"
:
"Video Detection"
,
"video-detection"
:
"Video Detection"
,
...
...
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