mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
add a simple script to notify user if some op is not supported
This commit is contained in:
parent
d7381ab5c1
commit
9926045d5e
13
machine-learning/rknn/export/convert.sh
Normal file
13
machine-learning/rknn/export/convert.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
python3 build_rknn.py $1 $2 > immich_to_rknn2.log
|
||||
|
||||
# if "No lowering found for" found in log file, return error status 1
|
||||
if grep -q "No lowering found for" immich_to_rknn2.log; then
|
||||
echo -e "\e[31mSome operations are not supported by RKNN, please check the log file for details.\e[0m"
|
||||
exit 1
|
||||
else
|
||||
echo -e "\e[32mConversion completed successfully.\e[0m"
|
||||
rm immich_to_rknn2.log
|
||||
exit 0
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user