MCPcopy Create free account

hub / github.com/WenjiaWang0312/TextZoom / functions

Functions304 in github.com/WenjiaWang0312/TextZoom

Functioncreate
Create a model instance. Parameters ---------- name: str Model name. One of __factory pretrained: bool, optional If True, will use
src/model/recognizer/__init__.py:13
FunctioncreateDataset_inpainting
Create LMDB dataset for CRNN training. ARGS: outputPath : LMDB output path imagePathList : list of image path labelList
src/dataset/create_lmdb.py:129
Functioncreate_800k
()
src/dataset/create_lmdb.py:236
Functioncreate_90k
()
src/dataset/create_lmdb.py:370
Functioncreate_ic
()
src/dataset/create_lmdb.py:408
Functioncreate_mat
()
src/dataset/create_lmdb.py:273
Functioncreate_total_text
()
src/dataset/create_lmdb.py:307
Functioncreate_txt
()
src/dataset/create_lmdb.py:462
Methodcummulative_sizes
(self)
src/dataset/dataset.py:310
Methoddecode
Decode encoded texts back into strs. Args: torch.IntTensor [length_0 + length_1 + ... length_{n - 1}]: encoded texts.
src/utils/utils_moran.py:79
Methoddecode
Decode encoded texts back into strs. Args: torch.IntTensor [length_0 + length_1 + ... length_{n - 1}]: encoded texts.
src/utils/utils_crnn.py:54
Methodencode
Support batch or single str. Args: text (str or list of str): texts to convert. Returns: torch.IntTensor [le
src/utils/utils_moran.py:53
Methodencode
Support batch or single str. Args: text (str or list of str): texts to convert. Returns: torch.IntTensor [le
src/utils/utils_crnn.py:32
Methodforward
(self, img1, img2)
src/utils/ssim_psnr.py:61
Methodforward
(self, x)
src/model/vdsr.py:17
Methodforward
(self, x)
src/model/vdsr.py:56
Methodforward
(self, x)
src/model/net.py:55
Methodforward
(self, x)
src/model/net.py:82
Methodforward
(self, x)
src/model/net.py:103
Methodforward
(self, x)
src/model/net.py:115
Methodforward
(self, x)
src/model/net.py:128
Methodforward
(self, x)
src/model/srresnet.py:52
Methodforward
(self, x)
src/model/srresnet.py:78
Methodforward
(self, x)
src/model/srresnet.py:95
Methodforward
(self, x)
src/model/srresnet.py:143
Methodforward
(self, x)
src/model/esrgan.py:30
Methodforward
(self, x)
src/model/esrgan.py:48
Methodforward
(self, x)
src/model/esrgan.py:75
Methodforward
(self, x)
src/model/esrgan.py:137
Methodforward
(self, x)
src/model/edsr.py:26
Methodforward
(self, x)
src/model/edsr.py:78
Methodforward
(self, x)
src/model/srcnn.py:43
Methodforward
(self, x)
src/model/tsrn.py:60
Methodforward
(self, x)
src/model/tsrn.py:88
Methodforward
(self, x)
src/model/tsrn.py:109
Methodforward
(self, x)
src/model/tsrn.py:121
Methodforward
(self, x)
src/model/tsrn.py:134
Methodforward
(self, x)
src/model/rdn.py:17
Methodforward
(self, x)
src/model/rdn.py:28
Methodforward
(self, x)
src/model/rdn.py:46
Methodforward
(self, x)
src/model/rdn.py:75
Methodforward
(self, x)
src/model/lapsrn.py:52
Methodforward
(self, x)
src/model/lapsrn.py:106
Methodforward
(self, X, Y)
src/model/lapsrn.py:133
Methodforward
(self, x)
src/model/attention_recognition_head.py:26
Methodforward
(self, x, sPrev)
src/model/attention_recognition_head.py:207
Methodforward
(self, x, sPrev, yPrev)
src/model/attention_recognition_head.py:250
Methodforward
(self, x)
src/model/rrdb.py:29
Methodforward
(self, x)
src/model/rrdb.py:47
Methodforward
(self, x)
src/model/rrdb.py:71
Methodforward
(self, x)
src/model/rrdb.py:132
Methodforward
(self, a, b)
src/model/rrdb.py:146
Methodforward
(self, input)
src/model/crnn/crnn.py:12
Methodforward
(self, input)
src/model/crnn/crnn.py:68
Methodforward
(self, input, target, length)
src/model/recognizer/sequenceCrossEntropyLoss.py:35
Methodforward
(self, x)
src/model/recognizer/resnet_aster.py:49
Methodforward
(self, x)
src/model/recognizer/resnet_aster.py:113
Methodforward
(self, x)
src/model/recognizer/stn_head.py:86
Methodforward
(self, input_dict)
src/model/recognizer/recognizer_builder.py:65
Methodforward
(self, input, source_control_points)
src/model/recognizer/tps_spatial_transformer.py:100
Methodforward
(self, x)
src/model/recognizer/attention_recognition_head.py:26
Methodforward
(self, x, sPrev)
src/model/recognizer/attention_recognition_head.py:209
Methodforward
(self, x, sPrev, yPrev)
src/model/recognizer/attention_recognition_head.py:255
Methodforward
(self, x)
src/model/moran/fracPickup.py:13
Methodforward
(self, x, length, text, text_rev, test=False, debug=False)
src/model/moran/moran.py:14
Methodforward
(self, input)
src/model/moran/asrn_res.py:17
Methodforward
(self, prev_hidden, feats, cur_embeddings, test=False)
src/model/moran/asrn_res.py:39
Methodforward
(self, feats, text_length, text, test=False)
src/model/moran/asrn_res.py:80
Methodforward
(self,x)
src/model/moran/asrn_res.py:180
Methodforward
(self,x)
src/model/moran/asrn_res.py:205
Methodforward
(self, input, length, text, text_rev, test=False)
src/model/moran/asrn_res.py:241
Methodforward
(self, x, test, enhance=1, debug=False)
src/model/moran/morn.py:46
Methodforward
(self, out_images, target_images)
src/loss/image_loss.py:19
Methodforward
(self, out_images, target_images)
src/loss/image_loss.py:33
Methodforward
(self, out_images, target_images)
src/loss/percptual_loss.py:20
Methodforward
(self, x)
src/loss/percptual_loss.py:35
Methodforward
(self, out_images, target_images)
src/loss/gradient_loss.py:15
Functionget_sinusoid_encoding
(n_position, feat_dim, wave_length=10000)
src/model/recognizer/resnet_aster.py:23
Functionid2char
(voc)
src/utils/labelmaps.py:36
Methodinit_weights
(self)
src/model/attention_recognition_head.py:199
Methodinit_weights
(self)
src/model/attention_recognition_head.py:245
Methodinit_weights
(self)
src/model/recognizer/attention_recognition_head.py:201
Methodinit_weights
(self)
src/model/recognizer/attention_recognition_head.py:250
Functionlabels2strs
(labels, id2char, char2id)
src/utils/labelmaps.py:40
FunctionloadData
(v, data)
src/utils/utils_moran.py:136
FunctionloadData
(v, data)
src/utils/utils_crnn.py:133
FunctionloadData
(v, data)
src/utils/util.py:149
Functionnames
()
src/model/recognizer/__init__.py:9
FunctiononeHot
(v, v_length, nc)
src/utils/utils_crnn.py:120
FunctiononeHot
(v, v_length, nc)
src/utils/util.py:136
FunctionprettyPrint
(v)
src/utils/utils_crnn.py:137
FunctionprettyPrint
(v)
src/utils/util.py:153
Functionrand_crop
(im)
src/dataset/dataset.py:27
Methodreset
(self)
src/utils/meters.py:13
Methodsample
(self, x)
src/model/attention_recognition_head.py:44
Methodsample
(self, x)
src/model/recognizer/attention_recognition_head.py:45
Functionssim
(img1, img2, window_size=11, size_average=True)
src/utils/ssim_psnr.py:81
Methodtest_display
(self, image_in, image_out, image_target, pred_str_lr, pred_str_sr, label_strs, str_filt)
src/interfaces/base.py:197
Functionto_torch
(ndarray)
src/utils/labelmaps.py:72
Methodtransform_
(path)
src/interfaces/super_resolution.py:263
← previousnext →201–300 of 304, ranked by callers