MCPcopy Create free account

hub / github.com/SongjieXie/Discrete-TaskOriented-JSCC / functions

Functions63 in github.com/SongjieXie/Discrete-TaskOriented-JSCC

↓ 5 callersFunctionaccuracy
Computes the precision@k for the specified values of k
utils/accuracy.py:2
↓ 4 callersFunctionget_data
(data_set, batch_size, shuffle=True, n_worker=0, train = True, add_noise=0)
datasets/dataloader.py:9
↓ 3 callersFunctioncencrop_teransform
(s=128, resize= None)
datasets/transform.py:44
↓ 3 callersFunctionsimple_transform
(s)
datasets/transform.py:12
↓ 2 callersMethod__init__
(self, in_channels)
model/modules.py:7
↓ 2 callersFunction_entr
(dist)
model/losses.py:7
↓ 2 callersMethodassign
(self, ele)
utils/modulation.py:92
↓ 2 callersMethodmod_channel_demod
(self,mod, x)
model/modules.py:73
↓ 1 callersFunctionBestMap
(L1, L2)
datasets/utils.py:76
↓ 1 callersFunctionHungarian
(A)
datasets/utils.py:71
↓ 1 callersMethod__init__
(self, latent_channels, out_classes, num_latent=4, num_embeddings=4)
model/DT_JSCC.py:75
↓ 1 callersMethod__init__
(self, lam)
model/losses.py:18
↓ 1 callersMethodawgn
(self, X)
utils/modulation.py:15
↓ 1 callersMethodbuild
(self)
utils/modulation.py:19
↓ 1 callersMethodbuild
(self)
utils/modulation.py:57
↓ 1 callersMethodcompute_noise
(self, PSNR)
utils/modulation.py:11
↓ 1 callersMethodcompute_noise
(self, PSNR)
utils/modulation.py:53
↓ 1 callersMethodcompute_score
(self, X)
model/modules.py:50
↓ 1 callersMethodconstruct_noise
(self, mod, samples)
model/modules.py:78
↓ 1 callersMethoddecode
(self, features, former_shape)
model/DT_JSCC.py:59
↓ 1 callersMethoddemodulate
(self, X)
utils/modulation.py:33
↓ 1 callersMethodencode
(self, X)
model/DT_JSCC.py:53
↓ 1 callersFunctioneval_test
(datal, model, mod, args)
evaluate.py:8
↓ 1 callersFunctionfilter_dir
(l, tar_str)
datasets/utils.py:12
↓ 1 callersFunctionget_image
(path_to_image)
datasets/imagenet_datasets.py:9
↓ 1 callersFunctionimagenet_transform
(s)
datasets/transform.py:27
↓ 1 callersFunctionimg_split
(imgs, n)
datasets/image_split.py:3
↓ 1 callersFunctionmain
Model and Opimizer
main.py:15
↓ 1 callersFunctionmain
(args)
evaluate.py:24
↓ 1 callersMethodmodulate
(self, z:torch.Tensor)
utils/modulation.py:26
↓ 1 callersFunctionplay_show
(X_imgs,device, N=1, t=None)
datasets/utils.py:62
↓ 1 callersMethodrecover
(self, samples)
model/modules.py:85
↓ 1 callersMethodsample
(self, score, mod=None)
model/modules.py:59
↓ 1 callersFunctionsimple_transform_mnist
()
datasets/transform.py:6
↓ 1 callersFunctionsimple_transform_test
(s)
datasets/transform.py:19
↓ 1 callersFunctiontest
(dataloader, model, criterion, writer, epoch, mod, args)
engine.py:42
↓ 1 callersFunctiontrain_one_epoch
(dataloader:Iterable, model:torch.nn.Module, optimizer:torch.optim.Optimizer, criterion:t
engine.py:7
Method__getitem__
(self, idx)
datasets/imagenet_datasets.py:37
Method__init__
(self, M, PSNR)
utils/modulation.py:5
Method__init__
(self, M, PSNR)
utils/modulation.py:46
Method__init__
(self, in_channels, latent_channels, out_classes, num_embeddings=400)
model/DT_JSCC.py:5
Method__init__
(self, lam)
model/losses.py:30
Method__init__
(self, in_channels, out_channels)
model/modules.py:23
Method__init__
(self, dim_dic, num_embeddings = 50)
model/modules.py:42
Method__init__
(self, path:str, split:str, transforms: torchvision.transforms=None, targe
datasets/imagenet_datasets.py:19
Method__len__
(self)
datasets/imagenet_datasets.py:58
Functionaug_transform
(s=148, p=0.8)
datasets/transform.py:62
Methodawgn
(self, X)
utils/modulation.py:79
Functionbest_map
(L1,L2)
datasets/utils.py:100
Methodcompute_distance
(self,X)
model/modules.py:53
Methoddemodulate
(self, X)
utils/modulation.py:83
Functionerr_rate
(gt_s, s)
datasets/utils.py:124
Methodforward
(self, X, mod=None)
model/DT_JSCC.py:66
Methodforward
(self, X, mod=None)
model/DT_JSCC.py:92
Methodforward
(self, dist, outputs, targets)
model/losses.py:23
Methodforward
(self, dist, outputs, targets)
model/losses.py:35
Methodforward
(self, x)
model/modules.py:18
Methodforward
(self, x)
model/modules.py:37
Methodforward
(self, X, mod= None)
model/modules.py:89
Functionimagenet_transform_aug
(s)
datasets/transform.py:34
Methodmodulate
(self, z:torch.Tensor)
utils/modulation.py:69
Functionrecover_img
X in BxNx1600 X_img in BxNx1x40x40
datasets/utils.py:41
Functionser
(p, d)
utils/modulation.py:39