Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Crack_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
Jan-Christopher Schmidt
Crack_Detection
Commits
59f84a35
Commit
59f84a35
authored
1 year ago
by
Julian Steinmetz
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes.
parent
106e72a2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crack_tracker_ml_test.py
+6
-5
6 additions, 5 deletions
crack_tracker_ml_test.py
with
6 additions
and
5 deletions
crack_tracker_ml_test.py
+
6
−
5
View file @
59f84a35
import
ml_module
as
T
xgb_model_path
=
'
TrainedModel/
xgb_model
.pkl
'
xgb_model_path
=
'
TrainedModel/
LightRedRaw_test_two
.pkl
'
# img_p = 'D:/TestImagesCrackDetection/In01/cropped_V13#01_0211.png'
img_p
=
f
'
P:/work/ima/results/ProbeV12#Ref03/cropped_png/cropped_V12#Ref03_0500.png
'
# img_p = f'P:/work/ima/results/ProbeV12#Ref03/cropped_png/cropped_V12#Ref03_0500.png'
img_p
=
'
P:/work/ima/CNN/TrainingImagesManualMark/LightRedRaw/cropped_images/cropped_V13#02_3781.png
'
SIZE_X
=
240
SIZE_Y
=
6
000
SIZE_X
=
327
SIZE_Y
=
6
307
DL_model
=
T
.
create_dl_model
(
size_x
=
SIZE_X
,
size_y
=
SIZE_Y
)
XGB_model
=
T
.
load_xgb_model
(
xgb_model_path
)
...
...
@@ -16,6 +17,6 @@ XGB_model = T.load_xgb_model(xgb_model_path)
output_image
,
y
,
x
=
T
.
crack_image
(
image_path
=
img_p
,
size_x
=
SIZE_X
,
size_y
=
SIZE_Y
,
dl_model
=
DL_model
,
xgb_model
=
XGB_model
)
T
.
cv2
.
imwrite
(
"
C:/Users/jsteinmetz/Desktop/Test.png
"
,
output_image
)
T
.
cv2
.
imwrite
(
"
C:/Users/jsteinmetz/Desktop/Test
V13#02_3781
.png
"
,
output_image
)
# print(T.crack_image(image_path=img_p, size_x=SIZE_X, size_y=SIZE_Y, dl_model=DL_model, xgb_model=XGB_model)[1])
# print(T.crack_image(image_path=img_p, size_x=SIZE_X, size_y=SIZE_Y, dl_model=DL_model, xgb_model=XGB_model)[2])
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