MCPcopy Create free account

hub / github.com/BICLab/SpikeYOLO / functions

Functions3,942 in github.com/BICLab/SpikeYOLO

↓ 344 callersMethodappend
Appends a new transform to the existing list of transforms.
SpikeYOLO_for_Gen1/ultralytics/data/augment.py:75
↓ 256 callersFunctionprint
(*args, **kwargs)
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/model/train_classify.py:251
↓ 206 callersMethodto
Return a copy of the Results object with tensors on the specified device and dtype.
SpikeYOLO_for_Gen1/ultralytics/engine/results.py:159
↓ 188 callersMethodappend
Appends a new transform to the existing list of transforms.
ultralytics/data/augment.py:73
↓ 160 callersMethodinfo
Logs model info. Args: detailed (bool): Show detailed information about model. verbose (bool): Controls verb
SpikeYOLO_for_Gen1/ultralytics/engine/model.py:191
↓ 149 callersMethodinfo
Logs model info. Args: detailed (bool): Show detailed information about model. verbose (bool): Controls verb
ultralytics/engine/model.py:191
↓ 125 callersMethodget
Return the value of the specified key if it exists; otherwise, return the default value.
SpikeYOLO_for_Gen1/ultralytics/utils/__init__.py:179
↓ 120 callersMethodget
Return the value of the specified key if it exists; otherwise, return the default value.
ultralytics/utils/__init__.py:179
↓ 100 callersFunctionprint
(*args, **kwargs)
SpikeYOLO_for_Gen1/ultralytics/nn/modules/spikformer_util/misc.py:176
↓ 93 callersMethodmax
(self)
SpikeYOLO_for_Gen1/ultralytics/nn/modules/spikformer_util/misc.py:70
↓ 83 callersMethoddetach
* :ref:`API in English <MemoryModule.detach-en>` .. _memoriesModule.detach-cn: 从计算图中分离所有有状态变量。 .. tip::
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/base.py:119
↓ 78 callersMethodtime
Get current time.
SpikeYOLO_for_Gen1/ultralytics/utils/ops.py:56
↓ 78 callersMethodwrite
(self, txt)
SpikeYOLO_for_Gen1/DESC/RENet/src/trainer/logger.py:40
↓ 71 callersMethodto
Return a copy of the Results object with tensors on the specified device and dtype.
ultralytics/engine/results.py:159
↓ 64 callersMethodcpu
Return a copy of the Results object with all tensors on CPU memory.
SpikeYOLO_for_Gen1/ultralytics/engine/results.py:147
↓ 58 callersMethodnumpy
Return a copy of the Results object with all tensors as numpy arrays.
SpikeYOLO_for_Gen1/ultralytics/engine/results.py:151
↓ 50 callersMethodmax
(self)
ultralytics/nn/modules/spikformer_util/misc.py:70
↓ 49 callersMethodload
Transfers parameters with matching names and shapes from 'weights' to model.
SpikeYOLO_for_Gen1/ultralytics/engine/model.py:183
↓ 48 callersMethodcpu
Return a copy of the Results object with all tensors on CPU memory.
ultralytics/engine/results.py:147
↓ 47 callersFunctioncolorstr
Colors a string based on the provided color and style arguments. Utilizes ANSI escape codes. See https://en.wikipedia.org/wiki/ANSI_escape_co
ultralytics/utils/__init__.py:645
↓ 47 callersFunctioncolorstr
Colors a string based on the provided color and style arguments. Utilizes ANSI escape codes. See https://en.wikipedia.org/wiki/ANSI_escape_co
SpikeYOLO_for_Gen1/ultralytics/utils/__init__.py:644
↓ 45 callersMethodsave
Save annotated results image.
SpikeYOLO_for_Gen1/ultralytics/engine/results.py:284
↓ 43 callersMethodtolist
Converts the list of transforms to a standard Python list.
SpikeYOLO_for_Gen1/ultralytics/data/augment.py:79
↓ 41 callersMethodconcatenate
Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (List[Bboxes]): A list of Bboxes obje
SpikeYOLO_for_Gen1/ultralytics/utils/instance.py:127
↓ 41 callersMethodload_state_dict
(self, state_dict)
SpikeYOLO_for_Gen1/ultralytics/nn/modules/spikformer_util/misc.py:276
↓ 40 callersMethodrun
(self, data)
SpikeYOLO_for_Gen1/DESC/RENet/src/detector/stream_mod_det.py:209
↓ 40 callersMethodtime
Get current time.
ultralytics/utils/ops.py:56
↓ 39 callersMethodstate_dict
(self)
SpikeYOLO_for_Gen1/ultralytics/nn/modules/spikformer_util/misc.py:273
↓ 39 callersMethodtolist
Converts the list of transforms to a standard Python list.
ultralytics/data/augment.py:77
↓ 38 callersMethodstep
(self, actions)
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/examples/common/multiprocessing_env.py:78
↓ 36 callersMethodkeys
Returns a list of keys for accessing specific metrics.
SpikeYOLO_for_Gen1/ultralytics/utils/metrics.py:732
↓ 36 callersMethodnumpy
Return a copy of the Results object with all tensors as numpy arrays.
ultralytics/engine/results.py:151
↓ 33 callersMethodapply
Apply object detection on a raw frame using specified method.
SpikeYOLO_for_Gen1/ultralytics/trackers/utils/gmc.py:78
↓ 31 callersFunctioncheck_requirements
Check if installed dependencies meet YOLOv8 requirements and attempt to auto-update if needed. Args: requirements (Union[Path, str,
ultralytics/utils/checks.py:302
↓ 31 callersFunctioncheck_requirements
Check if installed dependencies meet YOLOv8 requirements and attempt to auto-update if needed. Args: requirements (Union[Path, str,
SpikeYOLO_for_Gen1/ultralytics/utils/checks.py:302
↓ 29 callersMethodconcatenate
Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (List[Bboxes]): A list of Bboxes obje
ultralytics/utils/instance.py:127
↓ 29 callersFunctionprint
(*args, **kwargs)
ultralytics/nn/modules/spikformer_util/misc.py:176
↓ 28 callersMethod__init__
(self)
ultralytics/nn/modules/yolo_spikformer_bin.py:420
↓ 27 callersMethodinfo
Prints model information. Args: detailed (bool): if True, prints out detailed information about the model. Defaults to F
ultralytics/nn/tasks.py:164
↓ 27 callersMethodinfo
Prints model information. Args: detailed (bool): if True, prints out detailed information about the model. Defaults to F
SpikeYOLO_for_Gen1/ultralytics/nn/tasks.py:164
↓ 27 callersMethodupdate
Updates the evaluation metrics of the model with a new set of results. Args: results (tuple): A tuple containing the fol
SpikeYOLO_for_Gen1/ultralytics/utils/metrics.py:645
↓ 25 callersMethodfrom_numpy
Convert a numpy array to a tensor. Args: x (np.ndarray): The array to be converted. Returns: (torch
SpikeYOLO_for_Gen1/ultralytics/nn/autobackend.py:457
↓ 25 callersMethodsave
Saves the current settings to the YAML file.
ultralytics/utils/__init__.py:893
↓ 22 callersMethodclose
Close stream loader and release resources.
ultralytics/data/loaders.py:128
↓ 22 callersMethodclose
Close stream loader and release resources.
SpikeYOLO_for_Gen1/ultralytics/data/loaders.py:128
↓ 22 callersMethodkeys
Returns a list of keys for accessing specific metrics.
ultralytics/utils/metrics.py:728
↓ 21 callersMethod__init__
* :ref:`API in English <DCT.__init__-en>` .. _DCT.__init__-cn: :param kernel_size: 进行分块DCT变换的块大小 将输入的 ``shape = [*
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/layer.py:92
↓ 21 callersMethodregister_memory
* :ref:`API in English <MemoryModule.register_memory-en>` .. _memoriesModule.register_memory-cn: :param name: 变量的名字
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/base.py:25
↓ 21 callersMethodupdate
Updates the evaluation metrics of the model with a new set of results. Args: results (tuple): A tuple containing the fol
ultralytics/utils/metrics.py:641
↓ 20 callersMethoddevice
Returns device if PyTorch model.
SpikeYOLO_for_Gen1/ultralytics/engine/model.py:384
↓ 19 callersMethodclose
Clean up the environments' resources.
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/examples/common/multiprocessing_env.py:72
↓ 18 callersMethodbackward
(ctx, grad_output)
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/examples/cifar10_r11_enabling_spikebased_backpropagation.py:52
↓ 18 callersFunctionemojis
Return platform-dependent emoji-safe version of string.
ultralytics/utils/__init__.py:249
↓ 18 callersFunctionemojis
Return platform-dependent emoji-safe version of string.
SpikeYOLO_for_Gen1/ultralytics/utils/__init__.py:249
↓ 18 callersMethodload
Transfers parameters with matching names and shapes from 'weights' to model.
ultralytics/engine/model.py:183
↓ 17 callersMethod__init__
( self, in_channel, out_channel, kernel_size = 3,
ultralytics/nn/modules/yolo_spikformer.py:307
↓ 17 callersMethodreset
Reset all the environments and return an array of observations, or a tuple of observation arrays. If step_async is still doin
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/examples/common/multiprocessing_env.py:40
↓ 16 callersMethod__init__
Initializes the CSP Bottleneck with configurations for 1 convolution with arguments ch_in, ch_out, number.
ultralytics/nn/modules/block.py:155
↓ 16 callersMethod__init__
Initializes the CSP Bottleneck with configurations for 1 convolution with arguments ch_in, ch_out, number.
SpikeYOLO_for_Gen1/ultralytics/nn/modules/block.py:155
↓ 16 callersMethod__init__
( self, in_channel, out_channel, kernel_size = 3,
SpikeYOLO_for_Gen1/ultralytics/nn/modules/yolo_spikformer.py:189
↓ 16 callersMethodcuda
Return a copy of the Results object with all tensors on GPU memory.
SpikeYOLO_for_Gen1/ultralytics/engine/results.py:155
↓ 15 callersMethodfrom_numpy
Convert a numpy array to a tensor. Args: x (np.ndarray): The array to be converted. Returns: (torch
ultralytics/nn/autobackend.py:454
↓ 15 callersMethodrectangle
Add rectangle to image (PIL-only).
SpikeYOLO_for_Gen1/ultralytics/utils/plotting.py:225
↓ 14 callersFunctioncheck_version
Check current version against the required version or range. Args: current (str): Current version or package name to get version fro
ultralytics/utils/checks.py:148
↓ 14 callersFunctioncheck_version
Check current version against the required version or range. Args: current (str): Current version or package name to get version fro
SpikeYOLO_for_Gen1/ultralytics/utils/checks.py:148
↓ 14 callersMethodencode
:param x: shape=[batch_size, n, k],batch_size个数据,每个数据含有n个特征,每个特征中有k个数据 :param max_spike_time: 最大(最晚)脉冲发放时间,也可以称为编码时间窗口的长度 :re
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/event_driven/encoding.py:30
↓ 14 callersFunctionheaviside
* :ref:`API in English <heaviside.__init__-en>` .. _heaviside.__init__-cn: :param x: 输入tensor :return: 输出tensor heaviside阶跃函数,定
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/surrogate.py:12
↓ 14 callersMethodrectangle
Add rectangle to image (PIL-only).
ultralytics/utils/plotting.py:235
↓ 14 callersFunctionyaml_load
Load YAML data from a file. Args: file (str, optional): File name. Default is 'data.yaml'. append_filename (bool): Add the Y
ultralytics/utils/__init__.py:344
↓ 14 callersFunctionyaml_load
Load YAML data from a file. Args: file (str, optional): File name. Default is 'data.yaml'. append_filename (bool): Add the Y
SpikeYOLO_for_Gen1/ultralytics/utils/__init__.py:344
↓ 13 callersMethod__init__
* :ref:`API in English <IFNode.__init__-en>` .. _IFNode.__init__-cn: :param v_threshold: 神经元的阈值电压 :type v_threshold
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/neuron.py:237
↓ 13 callersMethod__len__
(self)
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/datasets/speechcommands.py:204
↓ 13 callersMethodplot
Plots the detection results on an input RGB image. Accepts a numpy array (cv2) or a PIL Image. Args: conf (bool): Whethe
SpikeYOLO_for_Gen1/ultralytics/engine/results.py:167
↓ 13 callersMethodrun_callbacks
Run all existing callbacks associated with a particular event.
ultralytics/engine/trainer.py:155
↓ 13 callersMethodrun_callbacks
Run all existing callbacks associated with a particular event.
SpikeYOLO_for_Gen1/ultralytics/engine/trainer.py:154
↓ 12 callersMethod__delattr__
(self, name)
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/base.py:90
↓ 12 callersMethod__init__
Initialize Conv layer with given arguments including activation.
ultralytics/nn/modules/conv.py:27
↓ 12 callersMethod__init__
Initialize Conv layer with given arguments including activation.
SpikeYOLO_for_Gen1/ultralytics/nn/modules/conv.py:27
↓ 12 callersMethod__init__
* :ref:`API in English <Erf.__init__-en>` .. _Erf.__init__-cn: :param alpha: 控制反向传播时梯度的平滑程度的参数 :param spiking: 是否输出脉
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/surrogate.py:1029
↓ 12 callersMethodapply
Apply object detection on a raw frame using specified method.
ultralytics/trackers/utils/gmc.py:78
↓ 12 callersMethodclip
Clips bounding boxes, segments, and keypoints values to stay within image boundaries.
ultralytics/utils/instance.py:338
↓ 12 callersMethodclip
Clips bounding boxes, segments, and keypoints values to stay within image boundaries.
SpikeYOLO_for_Gen1/ultralytics/utils/instance.py:338
↓ 12 callersMethodmse_loss
:param v_max: Tempotron神经元在仿真周期内输出的最大电压值,与forward函数在ret_type == 'v_max'时的返回值相\ 同。shape=[batch_size, out_features]的tensor :par
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/event_driven/neuron.py:43
↓ 12 callersMethodmul
Args: scale (tuple | list | int): the scale for four coords.
SpikeYOLO_for_Gen1/ultralytics/utils/instance.py:94
↓ 12 callersFunctionplot_images
Plot image grid with labels.
ultralytics/utils/plotting.py:383
↓ 12 callersFunctionplot_images
Plot image grid with labels.
SpikeYOLO_for_Gen1/ultralytics/utils/plotting.py:373
↓ 12 callersMethodsample
(self, batch_size)
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/examples/DQN_state.py:31
↓ 12 callersMethodtrain
Trains the model on a given dataset. Args: trainer (BaseTrainer, optional): Customized trainer. **kwargs (An
SpikeYOLO_for_Gen1/ultralytics/engine/model.py:317
↓ 11 callersMethodfromarray
Update self.im from a numpy array.
ultralytics/utils/plotting.py:268
↓ 11 callersMethodfromarray
Update self.im from a numpy array.
SpikeYOLO_for_Gen1/ultralytics/utils/plotting.py:258
↓ 11 callersMethodplot
Plot the confusion matrix using seaborn and save it to a file. Args: normalize (bool): Whether to normalize the confusio
ultralytics/utils/metrics.py:276
↓ 11 callersMethodplot
Plot the confusion matrix using seaborn and save it to a file. Args: normalize (bool): Whether to normalize the confusio
SpikeYOLO_for_Gen1/ultralytics/utils/metrics.py:276
↓ 10 callersMethod__init__
Initializes Attention module with the given parameters including dimension, key_dim, number of heads, etc.
ultralytics/models/sam/modules/tiny_encoder.py:203
↓ 10 callersMethod__init__
Initializes Attention module with the given parameters including dimension, key_dim, number of heads, etc.
SpikeYOLO_for_Gen1/ultralytics/models/sam/modules/tiny_encoder.py:203
↓ 10 callersMethod__init__
(self, channels=128, single_step_neuron: callable = None, **kwargs)
SpikeYOLO_for_Gen1/spikingjelly-0.0.0.0.12/spikingjelly/clock_driven/model/parametric_lif_net.py:23
↓ 10 callersMethodlabel_loss_items
Returns a loss dict with labelled training loss items tensor.
ultralytics/engine/trainer.py:515
↓ 10 callersMethodlabel_loss_items
Returns a loss dict with labelled training loss items tensor.
SpikeYOLO_for_Gen1/ultralytics/engine/trainer.py:515
↓ 10 callersMethodstate_dict
(self)
ultralytics/nn/modules/spikformer_util/misc.py:273
↓ 9 callersMethod__init__
Initialize the MLP with specified input, hidden, output dimensions and number of layers.
ultralytics/nn/modules/transformer.py:165
↓ 9 callersMethod__init__
Initialize the MLP with specified input, hidden, output dimensions and number of layers.
SpikeYOLO_for_Gen1/ultralytics/nn/modules/transformer.py:165
next →1–100 of 3,942, ranked by callers