Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SongjieXie/Discrete-TaskOriented-JSCC
/ functions
Functions
63 in github.com/SongjieXie/Discrete-TaskOriented-JSCC
⨍
Functions
63
◇
Types & classes
10
↓ 5 callers
Function
accuracy
Computes the precision@k for the specified values of k
utils/accuracy.py:2
↓ 4 callers
Function
get_data
(data_set, batch_size, shuffle=True, n_worker=0, train = True, add_noise=0)
datasets/dataloader.py:9
↓ 3 callers
Function
cencrop_teransform
(s=128, resize= None)
datasets/transform.py:44
↓ 3 callers
Function
simple_transform
(s)
datasets/transform.py:12
↓ 2 callers
Method
__init__
(self, in_channels)
model/modules.py:7
↓ 2 callers
Function
_entr
(dist)
model/losses.py:7
↓ 2 callers
Method
assign
(self, ele)
utils/modulation.py:92
↓ 2 callers
Method
mod_channel_demod
(self,mod, x)
model/modules.py:73
↓ 1 callers
Function
BestMap
(L1, L2)
datasets/utils.py:76
↓ 1 callers
Function
Hungarian
(A)
datasets/utils.py:71
↓ 1 callers
Method
__init__
(self, latent_channels, out_classes, num_latent=4, num_embeddings=4)
model/DT_JSCC.py:75
↓ 1 callers
Method
__init__
(self, lam)
model/losses.py:18
↓ 1 callers
Method
awgn
(self, X)
utils/modulation.py:15
↓ 1 callers
Method
build
(self)
utils/modulation.py:19
↓ 1 callers
Method
build
(self)
utils/modulation.py:57
↓ 1 callers
Method
compute_noise
(self, PSNR)
utils/modulation.py:11
↓ 1 callers
Method
compute_noise
(self, PSNR)
utils/modulation.py:53
↓ 1 callers
Method
compute_score
(self, X)
model/modules.py:50
↓ 1 callers
Method
construct_noise
(self, mod, samples)
model/modules.py:78
↓ 1 callers
Method
decode
(self, features, former_shape)
model/DT_JSCC.py:59
↓ 1 callers
Method
demodulate
(self, X)
utils/modulation.py:33
↓ 1 callers
Method
encode
(self, X)
model/DT_JSCC.py:53
↓ 1 callers
Function
eval_test
(datal, model, mod, args)
evaluate.py:8
↓ 1 callers
Function
filter_dir
(l, tar_str)
datasets/utils.py:12
↓ 1 callers
Function
get_image
(path_to_image)
datasets/imagenet_datasets.py:9
↓ 1 callers
Function
imagenet_transform
(s)
datasets/transform.py:27
↓ 1 callers
Function
img_split
(imgs, n)
datasets/image_split.py:3
↓ 1 callers
Function
main
Model and Opimizer
main.py:15
↓ 1 callers
Function
main
(args)
evaluate.py:24
↓ 1 callers
Method
modulate
(self, z:torch.Tensor)
utils/modulation.py:26
↓ 1 callers
Function
play_show
(X_imgs,device, N=1, t=None)
datasets/utils.py:62
↓ 1 callers
Method
recover
(self, samples)
model/modules.py:85
↓ 1 callers
Method
sample
(self, score, mod=None)
model/modules.py:59
↓ 1 callers
Function
simple_transform_mnist
()
datasets/transform.py:6
↓ 1 callers
Function
simple_transform_test
(s)
datasets/transform.py:19
↓ 1 callers
Function
test
(dataloader, model, criterion, writer, epoch, mod, args)
engine.py:42
↓ 1 callers
Function
train_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
Function
aug_transform
(s=148, p=0.8)
datasets/transform.py:62
Method
awgn
(self, X)
utils/modulation.py:79
Function
best_map
(L1,L2)
datasets/utils.py:100
Method
compute_distance
(self,X)
model/modules.py:53
Method
demodulate
(self, X)
utils/modulation.py:83
Function
err_rate
(gt_s, s)
datasets/utils.py:124
Method
forward
(self, X, mod=None)
model/DT_JSCC.py:66
Method
forward
(self, X, mod=None)
model/DT_JSCC.py:92
Method
forward
(self, dist, outputs, targets)
model/losses.py:23
Method
forward
(self, dist, outputs, targets)
model/losses.py:35
Method
forward
(self, x)
model/modules.py:18
Method
forward
(self, x)
model/modules.py:37
Method
forward
(self, X, mod= None)
model/modules.py:89
Function
imagenet_transform_aug
(s)
datasets/transform.py:34
Method
modulate
(self, z:torch.Tensor)
utils/modulation.py:69
Function
recover_img
X in BxNx1600 X_img in BxNx1x40x40
datasets/utils.py:41
Function
ser
(p, d)
utils/modulation.py:39