Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arturxe2/ASTRA
/ functions
Functions
42 in github.com/arturxe2/ASTRA
⨍
Functions
42
◇
Types & classes
12
↓ 8 callers
Function
feats2clip
Auxiliar function to split video features into clips
dataset.py:299
↓ 6 callers
Method
__init__
( self, chunk_size = 8, n_output = 24, baidu = True, audio = False,
model.py:14
↓ 4 callers
Method
step
(self, cur_iteration)
train.py:569
↓ 3 callers
Method
load_state_dict
(self, state_dict)
train.py:575
↓ 3 callers
Function
testSpotting
Function for inference of the action spotting model (and evaluation)
train.py:264
↓ 3 callers
Function
trainAS
Function to train 1 epoch of the action spotting model
train.py:142
↓ 2 callers
Function
apply_NMS
(predictions, window, thresh=0.0)
eval.py:81
↓ 2 callers
Function
pred2vec
(predictions, chunk_size = 32, outputrate = 2, threshold = 0.01, target = False, NMS = False, window = 4)
eval.py:5
↓ 1 callers
Method
__init__
(self, wC = 1, wD = 1, focal = False, nw = 7, uncertainty = False, uncertainty_mode = 'mse')
loss.py:29
↓ 1 callers
Function
compute_mAP
(preds, labs, framerate = 2, metric = 'tight')
eval.py:53
↓ 1 callers
Function
main
(args, cfg)
main_challenge.py:18
↓ 1 callers
Function
main
(args, cfg)
main.py:18
↓ 1 callers
Function
trainerAS
Function to train the action spotting model (with validation early stopping)
train.py:20
↓ 1 callers
Function
trainerAS_test
Function to train the action spotting model (when no validation early stopping - for using all data and evaluate on challenge)
train.py:82
↓ 1 callers
Method
warmup_learning_rate
(self, cur_iteration)
train.py:564
↓ 1 callers
Function
zipResults
(zip_path, target_dir, filename="results_spotting.json")
train.py:457
Method
__getitem__
(self, index)
dataset.py:220
Method
__getitem__
(self, index)
dataset.py:275
Method
__init__
(self, alpha = 0.6, beta = 0.4)
loss.py:10
Method
__init__
(self, optimizer, warmup_iteration, target_lr, after_scheduler=None)
train.py:557
Method
__init__
(self, path_labels = "ResNET_TF2", path_store = "SoccerNetSamples",
dataset.py:18
Method
__init__
(self, path_labels = "ResNET_TF2", path_baidu = "Baidu_features", path_audio =
dataset.py:250
Method
__init__
(self, input_dim, output_dim, sigmoid = True, drop = 0.2)
model.py:256
Method
__init__
(self, input_dim, output_dim, drop = 0.2)
model.py:275
Method
__init__
(self, input_dim, output_dim, drop = 0.2)
model.py:303
Method
__init__
(self, alpha = 0.3, beta = 0.3)
model.py:321
Method
__init__
(self, p = 0.0, dim = 8576)
model.py:355
Method
__init__
(self, p = 0.0)
model.py:367
Method
__len__
(self)
dataset.py:241
Method
__len__
(self)
dataset.py:295
Method
forward
labelsD: b x 18 predictionsD: b x 2 (with mean in 0 and logvar in 1)
loss.py:15
Method
forward
(self, labels, predictions, labelsD = None, predictionsD = None)
loss.py:41
Method
forward
(self, featsB = None, featsA = None, labels = None, labelsD = None, inference = False)
model.py:100
Method
forward
(self, x: torch.Tensor)
model.py:268
Method
forward
(self, x: torch.Tensor)
model.py:294
Method
forward
(self, x: torch.Tensor)
model.py:314
Method
forward
(self, featB, featBQ, featA, featAQ, labels, labelsQ, labelsD, labelsDQ)
model.py:329
Method
forward
(self, x: torch.Tensor)
model.py:360
Method
forward
(self, x: torch.Tensor)
model.py:371
Function
get_spot_from_NMS
Non-Maximum Suppression
train.py:494
Function
get_spot_from_SNMS
Soft Non-Maximum Suppression
train.py:520
Method
load_weights
(self, weights=None)
model.py:92