MCPcopy Create free account
hub / github.com/BICLab/SpikeYOLO / load

Method load

ultralytics/engine/model.py:183–189  ·  view source on GitHub ↗

Transfers parameters with matching names and shapes from 'weights' to model.

(self, weights='yolov8n.pt')

Source from the content-addressed store, hash-verified

181 return self
182
183 def load(self, weights='yolov8n.pt'):
184 """Transfers parameters with matching names and shapes from 'weights' to model."""
185 self._check_is_pytorch_model()
186 if isinstance(weights, (str, Path)):
187 weights, self.ckpt = attempt_load_one_weight(weights)
188 self.model.load(weights)
189 return self
190
191 def info(self, detailed=False, verbose=True):
192 """

Callers 15

train.pyFile · 0.45
coco2yolo.pyFile · 0.45
convert_cocoFunction · 0.45
load_imageMethod · 0.45
__getitem__Method · 0.45
load_dataset_cache_fileFunction · 0.45
__call__Method · 0.45
export_onnxMethod · 0.45
export_saved_modelMethod · 0.45
_loadMethod · 0.45
text_promptMethod · 0.45
get_modelMethod · 0.45

Calls 2

attempt_load_one_weightFunction · 0.90

Tested by

no test coverage detected