Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
darknet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
KWIVER
darknet
Commits
6bfd380b
Commit
6bfd380b
authored
8 years ago
by
Joseph Redmon
Browse files
Options
Downloads
Patches
Plain Diff
hi
parent
ab75d5c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+2
-2
2 additions, 2 deletions
Makefile
src/coco_demo.c
+7
-3
7 additions, 3 deletions
src/coco_demo.c
src/yolo_kernels.cu
+4
-0
4 additions, 0 deletions
src/yolo_kernels.cu
with
13 additions
and
5 deletions
Makefile
+
2
−
2
View file @
6bfd380b
GPU
=
0
OPENCV
=
1
CUDNN
=
0
OPENCV
=
0
DEBUG
=
0
ARCH
=
--gpu-architecture
=
compute_52
--gpu-code
=
compute_52
ARCH
=
--gpu-architecture
=
compute_52
--gpu-code
=
compute_52
VPATH
=
./src/
EXEC
=
darknet
...
...
This diff is collapsed.
Click to expand it.
src/coco_demo.c
+
7
−
3
View file @
6bfd380b
...
...
@@ -87,8 +87,6 @@ void demo_coco(char *cfgfile, char *weightfile, float thresh, int cam_index, con
}
if
(
!
cap
)
error
(
"Couldn't connect to webcam.
\n
"
);
cvNamedWindow
(
"COCO"
,
CV_WINDOW_NORMAL
);
cvResizeWindow
(
"COCO"
,
512
,
512
);
detection_layer
l
=
net
.
layers
[
net
.
n
-
1
];
int
j
;
...
...
@@ -123,16 +121,22 @@ void demo_coco(char *cfgfile, char *weightfile, float thresh, int cam_index, con
}
int
count
=
0
;
cvNamedWindow
(
"COCO"
,
CV_WINDOW_NORMAL
);
cvMoveWindow
(
"COCO"
,
0
,
0
);
cvResizeWindow
(
"COCO"
,
1352
,
1013
);
while
(
1
){
++
count
;
struct
timeval
tval_before
,
tval_after
,
tval_result
;
gettimeofday
(
&
tval_before
,
NULL
);
if
(
pthread_create
(
&
fetch_thread
,
0
,
fetch_in_thread_coco
,
0
))
error
(
"Thread creation failed"
);
if
(
pthread_create
(
&
detect_thread
,
0
,
detect_in_thread_coco
,
0
))
error
(
"Thread creation failed"
);
//show_image(disp, "COCO");
show_image
(
disp
,
"COCO"
);
/*
char buff[256];
sprintf(buff, "/home/pjreddie/coco/coco_%05d", count);
save_image(disp, buff);
*/
free_image
(
disp
);
cvWaitKey
(
10
);
...
...
This diff is collapsed.
Click to expand it.
src/yolo_kernels.cu
+
4
−
0
View file @
6bfd380b
...
...
@@ -99,6 +99,10 @@ extern "C" void demo_yolo(char *cfgfile, char *weightfile, float thresh, int cam
det
=
in
;
det_s
=
in_s
;
cvNamedWindow
(
"YOLO"
,
CV_WINDOW_NORMAL
);
cvMoveWindow
(
"YOLO"
,
0
,
0
);
cvResizeWindow
(
"YOLO"
,
1352
,
1013
);
while
(
1
){
struct
timeval
tval_before
,
tval_after
,
tval_result
;
gettimeofday
(
&
tval_before
,
NULL
);
...
...
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