@@ -22,21 +22,42 @@ scipy = "^1.8.1"
2222torchvision = " ^0.13.0"
2323protobuf = " <4.21.3"
2424seaborn = " ^0.11.2"
25+ imagesize = " ^1.4.1"
2526
2627[tool .poetry .dev-dependencies ]
2728tqdm = " ^4.64.0"
2829
2930[tool .poe .tasks .watch ]
3031shell = " npx parcel watch templates/*.html --no-source-maps --dist-dir dist"
31- interpreter = [" pwsh " , " posix" ]
32+ interpreter = [" powershell " , " posix" ]
3233
3334[tool .poe .tasks .build ]
3435shell = " npx parcel build templates/*.html --no-source-maps --dist-dir dist"
35- interpreter = [" pwsh " , " posix" ]
36+ interpreter = [" powershell " , " posix" ]
3637
3738[tool .poe .tasks .server ]
3839shell = " poetry run python app.py"
39- interpreter = [" pwsh" , " posix" ]
40+ interpreter = [" powershell" , " posix" ]
41+
42+ [tool .poe .tasks .build_basic_wasm ]
43+ shell = ''' python os_switcher.py --windows 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=basic -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && move yolov5* ../static/wasm_modules && cd .. && del /s /q build > NUL && rmdir /s /q build' --linux 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=basic -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && mv yolov5* ../static/wasm_modules && cd .. && rm -r build''''
44+ interpreter = [" powershell" , " posix" ]
45+
46+ [tool .poe .tasks .build_simd_wasm ]
47+ shell = ''' python os_switcher.py --windows 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=simd -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && move yolov5* ../static/wasm_modules && cd .. && del /s /q build > NUL && rmdir /s /q build' --linux 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=simd -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && mv yolov5* ../static/wasm_modules && cd .. && rm -r build''''
48+ interpreter = [" powershell" , " posix" ]
49+
50+ [tool .poe .tasks .build_threads_wasm ]
51+ shell = ''' python os_switcher.py --windows 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=threads -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && move yolov5* ../static/wasm_modules && cd .. && del /s /q build > NUL && rmdir /s /q build' --linux 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=threads -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && mv yolov5* ../static/wasm_modules && cd .. && rm -r build''''
52+ interpreter = [" powershell" , " posix" ]
53+
54+ [tool .poe .tasks .build_simd_threads_wasm ]
55+ shell = ''' python os_switcher.py --windows 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=simd-threads -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && move yolov5* ../static/wasm_modules && cd .. && del /s /q build > NUL && rmdir /s /q build' --linux 'mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=\"{env:EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" -DWASM_FEATURE=simd-threads -G \"Unix Makefiles\" .. && cmake --build . --config Release -j 4 && mv yolov5* ../static/wasm_modules && cd .. && rm -r build''''
56+ interpreter = [" powershell" , " posix" ]
57+
58+ [tool .poe .tasks .build_wasm ]
59+ shell = " poetry poe build_basic && poetry poe build_simd && poetry poe build_threads && poetry poe build_simd_threads"
60+ interpreter = [" powershell" , " posix" ]
4061
4162[build-system ]
4263requires = [" poetry-core>=1.0.0" ]
0 commit comments