Fix PyPI downloads links (#17399)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
fdcb60a60a
commit
7373816b23
19 changed files with 36 additions and 30 deletions
|
|
@ -568,8 +568,7 @@ class Exporter:
|
|||
f = str(self.file.with_suffix(".mnn")) # MNN model file
|
||||
args = ["", "-f", "ONNX", "--modelFile", f_onnx, "--MNNModel", f, "--bizCode", json.dumps(self.metadata)]
|
||||
if self.args.int8:
|
||||
args.append("--weightQuantBits")
|
||||
args.append("8")
|
||||
args.extend(("--weightQuantBits", "8"))
|
||||
if self.args.half:
|
||||
args.append("--fp16")
|
||||
mnnconvert.convert(args)
|
||||
|
|
|
|||
|
|
@ -792,7 +792,7 @@ class BaseTrainer:
|
|||
g[0].append(param)
|
||||
|
||||
optimizers = {"Adam", "Adamax", "AdamW", "NAdam", "RAdam", "RMSProp", "SGD", "auto"}
|
||||
name = {x.lower(): x for x in optimizers}.get(name.lower(), None)
|
||||
name = {x.lower(): x for x in optimizers}.get(name.lower())
|
||||
if name in {"Adam", "Adamax", "AdamW", "NAdam", "RAdam"}:
|
||||
optimizer = getattr(optim, name, optim.Adam)(g[2], lr=lr, betas=(momentum, 0.999), weight_decay=0.0)
|
||||
elif name == "RMSProp":
|
||||
|
|
|
|||
|
|
@ -72,14 +72,13 @@ class BaseSolution:
|
|||
self.model = YOLO(self.CFG["model"])
|
||||
self.names = self.model.names
|
||||
|
||||
if IS_CLI: # for CLI, download the source and init video writer
|
||||
if self.CFG["source"] is None:
|
||||
d_s = "solutions_ci_demo.mp4" if "-pose" not in self.CFG["model"] else "solution_ci_pose_demo.mp4"
|
||||
LOGGER.warning(f"⚠️ WARNING: source not provided. using default source {ASSETS_URL}/{d_s}")
|
||||
from ultralytics.utils.downloads import safe_download
|
||||
if IS_CLI and self.CFG["source"] is None:
|
||||
d_s = "solutions_ci_demo.mp4" if "-pose" not in self.CFG["model"] else "solution_ci_pose_demo.mp4"
|
||||
LOGGER.warning(f"⚠️ WARNING: source not provided. using default source {ASSETS_URL}/{d_s}")
|
||||
from ultralytics.utils.downloads import safe_download
|
||||
|
||||
safe_download(f"{ASSETS_URL}/{d_s}") # download source from ultralytics assets
|
||||
self.CFG["source"] = d_s # set default source
|
||||
safe_download(f"{ASSETS_URL}/{d_s}") # download source from ultralytics assets
|
||||
self.CFG["source"] = d_s # set default source
|
||||
|
||||
# Initialize environment and region setup
|
||||
self.env_check = check_imshow(warn=True)
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ def _log_plots(experiment, trainer):
|
|||
for plots in EVALUATION_PLOT_NAMES
|
||||
for prefix in POSE_METRICS_PLOT_PREFIX
|
||||
]
|
||||
elif isinstance(trainer.validator.metrics, DetMetrics) or isinstance(trainer.validator.metrics, OBBMetrics):
|
||||
elif isinstance(trainer.validator.metrics, (DetMetrics, OBBMetrics)):
|
||||
plot_filenames = [trainer.save_dir / f"{plots}.png" for plots in EVALUATION_PLOT_NAMES]
|
||||
|
||||
if plot_filenames is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue