Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/stylegan
/ functions
Functions
280 in github.com/NVlabs/stylegan
⨍
Functions
280
◇
Types & classes
20
Method
_evaluate
(self, Gs, num_gpus)
metrics/metric_base.py:138
Method
_evaluate
(self, Gs, num_gpus)
metrics/perceptual_path_length.py:46
Method
_evaluate
(self, Gs, num_gpus)
metrics/linear_separability.py:113
Method
_evaluate
(self, Gs, num_gpus)
metrics/frechet_inception_distance.py:27
Method
_iterate_fakes
(self, Gs, minibatch_size, num_gpus)
metrics/metric_base.py:109
Function
_legacy_output_transform_func
(*expr, out_mul=1.0, out_add=0.0, out_shrink=1, out_dtype=None)
dnnlib/tflib/network.py:576
Function
absolute_variable_scope
Forcefully enter the specified variable scope, ignoring any surrounding scopes.
dnnlib/tflib/tfutil.py:74
Function
apply_mirror_augment
(minibatch)
training/misc.py:187
Function
ask_yes_no
Ask the user the question until the user inputs a valid answer.
dnnlib/util.py:126
Function
call_func_by_name
Finds the python object with the given name and calls it as a function.
dnnlib/util.py:252
Function
compare
(tfrecord_dir_a, tfrecord_dir_b, ignore_labels)
dataset_tool.py:246
Method
convert
Create new network with the given parameters, and copy all variables from this network.
dnnlib/tflib/network.py:332
Function
convert_images_from_uint8
Convert a minibatch of images from uint8 to float32 with configurable dynamic range. Can be used as an input transformation for Network.run().
dnnlib/tflib/tfutil.py:218
Function
convert_images_to_uint8
Convert a minibatch of images from float32 to uint8 with configurable dynamic range. Can be used as an output transformation for Network.run().
dnnlib/tflib/tfutil.py:228
Function
convert_path
Convert a normal path to template and the convert it back to a normal path with given path type.
dnnlib/submission/submit.py:130
Function
copy_files_and_create_dirs
Takes in a list of tuples of (src, dst) paths and copies files. Will create all necessary directories.
dnnlib/util.py:313
Method
copy_own_vars_from
Copy the values of all variables from the given network, excluding sub-networks.
dnnlib/tflib/network.py:317
Method
copy_trainables_from
Copy the values of all trainable variables from the given network, including sub-networks.
dnnlib/tflib/network.py:327
Function
create_celeba
(tfrecord_dir, celeba_dir, cx=89, cy=121)
dataset_tool.py:484
Function
create_cifar10
(tfrecord_dir, cifar10_dir)
dataset_tool.py:330
Function
create_cifar100
(tfrecord_dir, cifar100_dir)
dataset_tool.py:357
Function
create_from_hdf5
(tfrecord_dir, hdf5_filename, shuffle)
dataset_tool.py:531
Function
create_from_images
(tfrecord_dir, image_dir, shuffle)
dataset_tool.py:503
Function
create_lsun
(tfrecord_dir, lmdb_dir, resolution=256, max_images=None)
dataset_tool.py:406
Function
create_lsun_wide
(tfrecord_dir, lmdb_dir, width=512, height=384, max_images=None)
dataset_tool.py:439
Function
create_mnist
(tfrecord_dir, mnist_dir)
dataset_tool.py:289
Function
create_mnistrgb
(tfrecord_dir, mnist_dir, num_images=1000000, random_seed=123)
dataset_tool.py:313
Function
create_svhn
(tfrecord_dir, svhn_dir)
dataset_tool.py:379
Function
create_var_with_large_initial_value
Create tf.Variable with large initial value without bloating the tf graph.
dnnlib/tflib/tfutil.py:208
Function
display
(tfrecord_dir)
dataset_tool.py:193
Function
exp2
Exponent in base 2.
dnnlib/tflib/tfutil.py:51
Function
extract
(tfrecord_dir, output_dir)
dataset_tool.py:219
Function
flatten
Shortcut function for flattening a tensor.
dnnlib/tflib/tfutil.py:39
Function
format_time
Convert the seconds to human readable string with days, hours, minutes and seconds.
dnnlib/util.py:112
Function
get_dtype_and_ctype
Given a type name string (or an object having a __name__ attribute), return matching Numpy and ctypes types that have the same size in bytes.
dnnlib/util.py:160
Function
get_id_string_for_network_pkl
(network_pkl)
training/misc.py:145
Method
get_minibatch_np
(self, minibatch_size, lod=0)
training/dataset.py:203
Function
get_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
dnnlib/util.py:260
Method
get_random_labels_np
(self, minibatch_size)
training/dataset.py:163
Method
get_random_labels_np
(self, minibatch_size)
training/dataset.py:213
Method
get_result_str
(self)
metrics/metric_base.py:127
Function
get_top_level_function_name
Return the fully-qualified name of a top-level function.
dnnlib/util.py:271
Method
get_var_local_name
Get the local name of a given variable, without any surrounding name scopes.
dnnlib/tflib/network.py:235
Function
grad
(dy)
training/networks_stylegan.py:102
Function
import_handler
Function decorator for declaring custom import handlers.
dnnlib/tflib/network.py:30
Function
init_tf
Initialize TensorFlow session using good default settings.
dnnlib/tflib/tfutil.py:94
Function
init_uninitialized_vars
Initialize all tf.Variables that have not already been initialized. Equivalent to the following, but more efficient and does not bloat the tf gra
dnnlib/tflib/tfutil.py:152
Function
is_pickleable
(obj: Any)
dnnlib/util.py:183
Function
leaky_relu
(x, alpha=0.2)
training/networks_progan.py:67
Function
leaky_relu
(x, alpha=0.2)
training/networks_stylegan.py:223
Function
lerp
Linear interpolation.
dnnlib/tflib/tfutil.py:57
Function
lerp_clip
Linear interpolation with clip.
dnnlib/tflib/tfutil.py:63
Function
list_dir_recursively_with_ignore
List all files recursively in a given directory while ignoring given file and directory names. Returns list of tuples containing both absolute and
dnnlib/util.py:280
Function
load_dataset
(class_name='training.dataset.TFRecordDataset', data_dir=None, verbose=False, **kwargs)
training/dataset.py:228
Function
load_dataset_for_previous_run
(run_id, **kwargs)
training/misc.py:180
Function
load_network_pkl
(run_id_or_run_dir_or_network_pkl, snapshot_or_network_pkl=None)
training/misc.py:152
Function
log2
Logarithm in base 2.
dnnlib/tflib/tfutil.py:45
Function
open_url
Download the given URL and return a binary-mode file object to access the data.
dnnlib/util.py:345
Function
parse_tfrecord_tf
(record)
training/dataset.py:20
Method
process_items_concurrently
(self, item_iterator, process_func=lambda x: x, pre_func=lambda x: x, post_func=lambda x: x, max_items_in_flig
dataset_tool.py:165
Method
recurse
(scope, parent_ops, parent_vars, level)
dnnlib/tflib/network.py:469
Method
reset_trainables
Re-initialize all trainable variables of this network, including sub-networks.
dnnlib/tflib/network.py:196
Method
reset_vars
Re-initialize all variables of this network, including sub-networks.
dnnlib/tflib/network.py:192
Method
retire_result
()
dataset_tool.py:174
Function
run_all_snapshots
(submit_config, metric_args, run_id)
run_metrics.py:46
Function
run_pickle
(submit_config, metric_args, network_pkl, dataset_args, mirror_augment)
run_metrics.py:20
Function
run_snapshot
(submit_config, metric_args, run_id, snapshot)
run_metrics.py:32
Function
save_image
(image, filename, drange=[0,1], quality=95)
training/misc.py:79
Function
save_image_grid
(images, filename, drange=[0,1], grid_size=None)
training/misc.py:86
Function
save_pkl
(obj, filename)
training/misc.py:35
Function
save_summaries
Call FileWriter.add_summary() with all summaries in the default graph, automatically finalizing and merging them on the first call.
dnnlib/tflib/autosummary.py:170
Function
set_user_name_override
Set the global username override value.
dnnlib/submission/submit.py:137
Method
set_var
Set the value of a given variable based on the given NumPy array. Note: This method is very inefficient -- prefer to use tflib.set_vars() when
dnnlib/tflib/network.py:251
Function
setup_snapshot_image_grid
(G, training_set, size = '1080p', # '1080p' = to be viewed on 1080p display, '4k' = to be viewed o
training/misc.py:197
Function
shape_to_list
Convert a Tensorflow shape to a list of ints.
dnnlib/tflib/tfutil.py:34
Function
submit_run
Create a run dir, gather files related to the run, copy files to the run dir, and launch the run in appropriate place.
dnnlib/submission/submit.py:263
Method
task_func
(prepared, _idx)
dataset_tool.py:171
Function
training_loop
( submit_config, G_args = {}, # Options for generator network. D_args
training/training_loop.py:112
Function
tuple_product
Calculate the product of the tuple elements.
dnnlib/util.py:136
Method
unwind_key
(obj)
dnnlib/tflib/network.py:391
← previous
201–280 of 280, ranked by callers