Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Marsan-Ma-zz/imgrec
/ functions
Functions
50 in github.com/Marsan-Ma-zz/imgrec
⨍
Functions
50
◇
Types & classes
5
↳
Endpoints
1
↓ 4 callers
Function
convert_color
Convert image color with provided `mode`.
lib/data_util.py:555
↓ 4 callers
Function
load_image
Load an image, returns PIL.Image.
lib/data_util.py:528
↓ 4 callers
Function
pil_to_nparray
Convert a PIL.Image to numpy array.
lib/data_util.py:560
↓ 4 callers
Function
to_categorical
to_categorical. Convert class vector (integers from 0 to nb_classes) to binary class matrix, for use with categorical_crossentropy. Arg
lib/data_util.py:27
↓ 3 callers
Method
__init__
(self, array, function)
lib/data_util.py:854
↓ 3 callers
Function
directory_to_samples
Read a directory, and list all subdirectories files as class sample
lib/data_util.py:761
↓ 3 callers
Function
resize_image
Resize an image. Arguments: in_image: `PIL.Image`. The image to resize. new_width: `int`. The image new width. new_heigh
lib/data_util.py:534
↓ 2 callers
Function
dump_samples
(X, Y, fptr)
lib/data_util.py:569
↓ 2 callers
Function
get_img_channel
Load a image and return the channel of the image :param image_path: :return: the channel of the image
lib/data_util.py:414
↓ 2 callers
Function
params_setup
(cmdline=None)
lib/config.py:3
↓ 1 callers
Function
chars_to_dictionary
Creates a dictionary char:integer for each unique character
lib/data_util.py:153
↓ 1 callers
Method
fit
(self, X, Y, n_epoch=1000)
lib/googlenet.py:184
↓ 1 callers
Method
get_checkpoint
(self, model_path)
lib/googlenet.py:171
↓ 1 callers
Method
get_data
(self, dirname='17flowers', resize_pics=(227, 227), down_sampling=None)
lib/googlenet.py:197
↓ 1 callers
Method
predict
(self, X)
lib/googlenet.py:192
↓ 1 callers
Method
preload
(self, path, image_shape, normalize=True, grayscale=False)
lib/data_util.py:875
↓ 1 callers
Method
preload
(self, label, n_class, categorical_label)
lib/data_util.py:893
↓ 1 callers
Function
random_sequence_from_string
(string, seq_maxlen)
lib/data_util.py:161
↓ 1 callers
Method
save
save. Saves vocabulary processor into given file. Arguments: filename: Path to output file.
lib/data_util.py:262
↓ 1 callers
Function
shuffle
shuffle. Shuffle given arrays at unison, along first axis. Arguments: *arrs: Each array to shuffle at unison. Returns:
lib/data_util.py:661
↓ 1 callers
Function
string_to_semi_redundant_sequences
string_to_semi_redundant_sequences. Vectorize a string and returns parsed sequences and targets, along with the associated dictionary.
lib/data_util.py:101
↓ 1 callers
Function
url2sample
(url, resize=(227, 227))
app.py:41
Method
__getitem__
(self, id)
lib/data_util.py:858
Method
__init__
(self, max_document_length, min_frequency=0, vocabulary=Non
lib/data_util.py:194
Method
__init__
(self, array, image_shape, normalize=True, grayscale=False)
lib/data_util.py:871
Method
__init__
(self, array, n_class=None, categorical_label=True)
lib/data_util.py:889
Method
__init__
(self, args)
lib/googlenet.py:32
Method
__len__
(self)
lib/data_util.py:866
Function
build_hdf5_image_dataset
Build HDF5 Image Dataset. Build an HDF5 dataset by providing either a root folder or a plain text file with images path and class id. '
lib/data_util.py:291
Function
featurewise_std_normalization
featurewise_std_normalization. Scale each sample by the specified standard deviation. If no std specified, std is evaluated over all samples
lib/data_util.py:738
Function
featurewise_zero_center
featurewise_zero_center. Zero center every sample with specified mean. If not specified, the mean is evaluated over all samples. Argume
lib/data_util.py:715
Method
fit
fit. Learn a vocabulary dictionary of all tokens in the raw documents. Arguments: raw_documents: An iterable which yiel
lib/data_util.py:204
Method
fit_transform
fit_transform. Learn the vocabulary dictionary and return indexies of words. Arguments: raw_documents: An iterable whic
lib/data_util.py:218
Function
get_max
(X)
lib/data_util.py:902
Function
get_mean
(X)
lib/data_util.py:906
Function
get_std
(X)
lib/data_util.py:910
Function
guess
()
app.py:29
Function
image_dirs_to_samples
(dirname, label_size, resize=None, convert_gray=None, filetypes=None, down_sampling=N
lib/data_util.py:566
Function
image_preloader
Image PreLoader. Create a python array (`Preloader`) that loads images on the fly (from disk or url). There is two ways to provide image sam
lib/data_util.py:428
Function
load_csv
load_csv. Load data from a CSV file. By default the labels are considered to be the last column, but it can be changed by filling 'target_co
lib/data_util.py:809
Function
pad_sequences
pad_sequences. Pad each sequence to the same length: the length of the longest sequence. If maxlen is provided, any sequence longer than max
lib/data_util.py:52
Function
random_flip_leftright
(x)
lib/data_util.py:642
Function
random_flip_updown
(x)
lib/data_util.py:649
Function
random_sequence_from_textfile
(path, seq_maxlen)
lib/data_util.py:166
Method
restore
restore. Restores vocabulary processor from given file. Arguments: filename: Path to file to load from. Return
lib/data_util.py:273
Method
reverse
reverse. Reverses output of vocabulary mapping to words. Arguments: documents: iterable, list of class ids. Re
lib/data_util.py:249
Function
samplewise_std_normalization
samplewise_std_normalization. Scale each sample with its standard deviation. Arguments: X: `array`. The batch of samples to scale.
lib/data_util.py:698
Function
samplewise_zero_center
samplewise_zero_center. Zero center each sample by subtracting it by its mean. Arguments: X: `array`. The batch of samples to cente
lib/data_util.py:681
Function
textfile_to_semi_redundant_sequences
Vectorize Text file
lib/data_util.py:144
Method
transform
transform. Transform documents to word-id matrix. Convert words to ids with vocabulary fitted with fit or the one provided
lib/data_util.py:233