Skip to content

Commit

Permalink
Merge pull request #1 from beagleboard/master
Browse files Browse the repository at this point in the history
update:update fork
  • Loading branch information
Hansen0314 authored Apr 29, 2020
2 parents bad2bee + beac14b commit 6ca8641
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions BeagleBone/AI/tidl/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
all: classification.tidl.so segmentation.tidl.so
all: dummy.tidl.so classification.tidl.so

include /var/lib/cloud9/common/Makefile

run:
ti-mct-heap-check -c
mjpg_streamer -i "input_opencv.so -r 640x480 --filter ./classification.tidl.so" -o "output_http.so -p 8090 -w /usr/share/mjpg-streamer/www" 2> /dev/null
sudo mjpg_streamer -i "input_opencv.so -r 640x480 -d /dev/$(shell fgrep -v vpe /sys/class/video4linux/video*/name | perl -ne '/\/(video\d+)\/name/ && print $$1') --filter ./classification.tidl.so" -o "output_http.so -p 8090 -w /usr/share/mjpg-streamer/www" 2> /dev/null

clean:
rm -f dummy.tidl.so
rm -f classification.tidl.so
rm -f /tmp/cloud9-examples/classification.tidl.so || true

2 changes: 1 addition & 1 deletion BeagleBone/AI/tidl/classification.tidl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int tf_postprocess(uchar *in)
int rpt_id = -1;

typedef std::pair<uchar, int> val_index;
auto constexpr cmp = [](val_index &left, val_index &right) { return left.first > right.first; };
auto cmp = [](val_index &left, val_index &right) { return left.first > right.first; };
std::priority_queue<val_index, std::vector<val_index>, decltype(cmp)> queue(cmp);
// initialize priority queue with smallest value on top
for (int i = 0; i < k; i++) {
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ common | PRU files that are common to all the Beag
[extras](extras) | Lots of other demos.
[PocketBeagle](PocketBeagle) | Demos for the smallest of Beagles.
[sensorExamples](sensorExamples/README.md) | Examples for interfacing various sensors. Works on all Beagles

# Status on different branches

* master - on-going development, commits merged from unstable development branch
* v2020.01 - current stable, only bug fixes from unstable development branch
* v2020.08 - current unstable development branch, clean snapshot from 2020-04-06
4 changes: 2 additions & 2 deletions common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ define proc-to-build-vars =
$(TIDL_API_DIR)/tidl_api.a $(TIDL_API_DIR)/tidl_imgutil.a \
-lTIOpenCL -locl_util -lpthread
CXX=g++ -c -o
CXXFLAGS=-DCHIP=$(CHIP) -DMODEL=$(MODEL) -DPROC=$(PROC) -O3 -Wall -Werror -Wno-error=ignored-attributes \
-I. -I$(TIDL_API_DIR)/inc -std=c++11 -I/usr/share/ti/opencl
CXXFLAGS=-DCHIP=$(CHIP) -DMODEL=$(MODEL) -DPROC=$(PROC) -fPIC -O3 -Wall -Werror -Wno-error=ignored-attributes \
-I. -I$(TIDL_API_DIR)/inc -std=c++14 -I/usr/share/ti/opencl
else
LD=gcc -o
LDFLAGS=-lc -lm
Expand Down

0 comments on commit 6ca8641

Please sign in to comment.