ultralytics 8.1.19 PNNX aarch64 linux fix (#8480)
Co-authored-by: Burhan <62214284+Burhan-Q@users.noreply.github.com> Co-authored-by: Kayzwer <68285002+Kayzwer@users.noreply.github.com>
This commit is contained in:
parent
70f533fd47
commit
f8e681c2be
4 changed files with 14 additions and 9 deletions
|
|
@ -514,12 +514,12 @@ class Exporter:
|
|||
"https://github.com/pnnx/pnnx/.\nNote PNNX Binary file must be placed in current working directory "
|
||||
f"or in {ROOT}. See PNNX repo for full installation instructions."
|
||||
)
|
||||
system = ["macos"] if MACOS else ["windows"] if WINDOWS else ["ubuntu", "linux"] # operating system
|
||||
system = "macos" if MACOS else "windows" if WINDOWS else "linux-aarch64" if ARM64 else "linux"
|
||||
try:
|
||||
_, assets = get_github_assets(repo="pnnx/pnnx", retry=True)
|
||||
url = [x for x in assets if any(s in x for s in system)][0]
|
||||
url = [x for x in assets if f"{system}.zip" in x][0]
|
||||
except Exception as e:
|
||||
url = f"https://github.com/pnnx/pnnx/releases/download/20231127/pnnx-20231127-{system[0]}.zip"
|
||||
url = f"https://github.com/pnnx/pnnx/releases/download/20240226/pnnx-20240226-{system}.zip"
|
||||
LOGGER.warning(f"{prefix} WARNING ⚠️ PNNX GitHub assets not found: {e}, using default {url}")
|
||||
asset = attempt_download_asset(url, repo="pnnx/pnnx", release="latest")
|
||||
if check_is_path_safe(Path.cwd(), asset): # avoid path traversal security vulnerability
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue