File tree Expand file tree Collapse file tree
demos/video/chapel-webcam Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ OPENCV_LDFLAGS := $(shell pkg-config --cflags --libs opencv4)
6565
6666main : main.cpp smol_wrapper.h lib/libsmol.so
6767 @echo $(OPENCV_CFLAGS )
68- $(CHPL_LINKER ) $(CHPL_CFLAGS ) $(OPENCV_CFLAGS ) $(BRIDGE_CFLAGS ) -std=c++20 -fPIC main.cpp -o main $(CHPL_LDFLAGS ) $(OPENCV_LDFLAGS ) $(BRIDGE_LDFLAGS )
68+ $(CHPL_LINKER ) $(CHPL_CFLAGS ) $(OPENCV_CFLAGS ) $(BRIDGE_CFLAGS ) -O2 - std=c++20 -fPIC main.cpp -o main $(CHPL_LDFLAGS ) $(OPENCV_LDFLAGS ) $(BRIDGE_LDFLAGS )
6969
7070clean :
7171 rm -f maincpp maincpp.o main.o main
Original file line number Diff line number Diff line change 3131 " model.eval()\n " ,
3232 " \n " ,
3333 " sm = torch.jit.script(model.to(torch.float32))\n " ,
34- " sm.save(f\" model.pt\" )\n "
34+ " # sm.save(f\" model.pt\" )\n "
3535 ]
3636 },
3737 {
Original file line number Diff line number Diff line change 1+
2+
3+ ```
4+ cd ChAI/build
5+ make bridge_objs
6+ cd demos/video/chapel-webcam
7+ make cleanall && make clean && make libsmol && make main
8+ ./main --modelPath sobel.pt
9+ ```
You can’t perform that action at this time.
0 commit comments