docs: Update README and compilation guides for clarity and consistency, including path corrections and improved formatting. Add copyright notices to source files and adjust file permissions for several scripts and directories.

This commit is contained in:
dian.yuan 2026-02-28 11:06:26 +08:00
parent f960c5030d
commit bd891a96dd
136 changed files with 14413 additions and 9399 deletions

View file

@ -1,20 +1,20 @@
# YOLOE
## 4. Demo Run
### CPP
#### 1. Compile
**Prerequisites:**
- Android NDK r25c
- `ANDROID_NDK_PATH` environment variable set
**Build:**
```bash
# Build for arm64-v8a
cd examples/yoloe/cpp
AMLNN_HOME=/path/to/amlnn-toolkit ./build-android.sh -a arm64-v8a
```
The executable will be generated in `build/android/`.
# YOLOE
## 4. Demo Run
### CPP
#### 1. Compile
**Prerequisites:**
- Android NDK r25c
- `ANDROID_NDK_PATH` environment variable set
**Build:**
```bash
# Build for arm64-v8a
cd examples/yoloe/cpp
AMLNN_HOME=/path/to/amlnn-toolkit ./build-android.sh -a arm64-v8a
```
The executable will be generated in `build/android/`.

0
examples/yoloe/cpp/.gitkeep Normal file → Executable file
View file

View file

@ -174,7 +174,7 @@ int main(int argc, char** argv) {
memset(&outconfig, 0, sizeof(aml_output_config_t));
outconfig.typeSize = sizeof(aml_output_config_t);
outconfig.format = AML_OUTDATA_FLOAT32;
nn_output* outdata = (nn_output*)aml_module_output_get(context, outconfig);
if (!outdata) {
std::cerr << "Failed to run network (get output)." << std::endl;
@ -191,10 +191,10 @@ int main(int argc, char** argv) {
std::cout << "Objects:\n";
for (auto& box : boxes) {
std::cout << "[ " << box.x1 << ", " << box.y1 << ", " << box.x2 << ", " << box.y2 << " ]\n";
std::cout << "[ " << box.x1 << ", " << box.y1 << ", " << box.x2 << ", " << box.y2 << " ]\n";
}
std::cout << std::endl;
uninit_network(context);
return 0;

0
examples/yoloe/model/.gitkeep Normal file → Executable file
View file

0
examples/yoloe/py/.gitkeep Normal file → Executable file
View file