Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JunlinHan/DCLGAN
/ types & classes
Types & classes
76 in github.com/JunlinHan/DCLGAN
⨍
Functions
313
◇
Types & classes
76
↓ 11 callers
Class
Conv2dBlock
models/networks.py:817
↓ 8 callers
Class
ConvLayer
models/stylegan_networks.py:621
↓ 6 callers
Class
ImagePool
This class implements an image buffer that stores previously generated images. This buffer enables us to update discriminators using a history of
util/image_pool.py:5
↓ 6 callers
Class
UnetSkipConnectionBlock
Defines the Unet submodule with skip connection. X -------------------identity---------------------- |-- downsampling -- |submodule| -
models/networks.py:1243
↓ 5 callers
Class
Normalize
models/networks.py:460
↓ 4 callers
Class
Downsample
models/networks.py:37
↓ 4 callers
Class
EqualLinear
models/stylegan_networks.py:198
↓ 4 callers
Class
ResBlock
models/stylegan_networks.py:670
↓ 4 callers
Class
StyledConv
models/stylegan_networks.py:377
↓ 3 callers
Class
Blur
models/stylegan_networks.py:139
↓ 3 callers
Class
ResBlocks
models/networks.py:779
↓ 3 callers
Class
ResnetBlock
Define a Resnet block
models/networks.py:1151
↓ 3 callers
Class
ResnetGenerator
Resnet-based generator that consists of Resnet blocks between a few downsampling/upsampling operations. We adapt Torch code and idea from Justin
models/networks.py:943
↓ 2 callers
Class
FusedLeakyReLU
models/stylegan_networks.py:21
↓ 2 callers
Class
LayerNorm
models/networks.py:920
↓ 2 callers
Class
ModulatedConv2d
models/stylegan_networks.py:247
↓ 2 callers
Class
NLayerDiscriminator
Defines a PatchGAN discriminator
models/networks.py:1313
↓ 2 callers
Class
PatchNCELoss
models/patchnce.py:13
↓ 2 callers
Class
PatchNCELoss2
models/patchnce.py:53
↓ 2 callers
Class
PatchSampleF
models/networks.py:566
↓ 2 callers
Class
StyleGAN2Generator
models/stylegan_networks.py:897
↓ 2 callers
Class
ToRGB
models/stylegan_networks.py:417
↓ 2 callers
Class
UnetGenerator
Create a Unet-based generator
models/networks.py:1211
↓ 2 callers
Class
Upsample
models/networks.py:73
↓ 2 callers
Class
Upsample2
models/networks.py:63
↓ 1 callers
Class
ConstantInput
models/stylegan_networks.py:364
↓ 1 callers
Class
ContentEncoder
models/networks.py:693
↓ 1 callers
Class
CustomDatasetDataLoader
Wrapper class of Dataset class that performs multi-threaded data loading
data/__init__.py:62
↓ 1 callers
Class
Decoder
models/networks.py:749
↓ 1 callers
Class
Decoder_all
models/networks.py:721
↓ 1 callers
Class
EqualConv2d
models/stylegan_networks.py:158
↓ 1 callers
Class
G_Resnet
models/networks.py:618
↓ 1 callers
Class
HTML
This HTML class allows us to save images and write texts into a single HTML file. It consists of functions such as <add_header> (add a text head
util/html.py:6
↓ 1 callers
Class
Identity
models/networks.py:108
↓ 1 callers
Class
MappingF
models/networks.py:495
↓ 1 callers
Class
NoiseInjection
models/stylegan_networks.py:350
↓ 1 callers
Class
PixelDiscriminator
Defines a 1x1 PatchGAN discriminator (pixelGAN)
models/networks.py:1371
↓ 1 callers
Class
PixelNorm
models/stylegan_networks.py:78
↓ 1 callers
Class
PoolingF
models/networks.py:472
↓ 1 callers
Class
ResBlock
models/networks.py:801
↓ 1 callers
Class
ReshapeF
models/networks.py:483
↓ 1 callers
Class
ScaledLeakyReLU
models/stylegan_networks.py:235
↓ 1 callers
Class
StridedConvF
models/networks.py:520
↓ 1 callers
Class
StyleEncoder
models/networks.py:661
↓ 1 callers
Class
StyleGAN2Decoder
models/stylegan_networks.py:851
↓ 1 callers
Class
StyleGAN2Discriminator
models/stylegan_networks.py:695
↓ 1 callers
Class
StyleGAN2Encoder
models/stylegan_networks.py:797
↓ 1 callers
Class
TestOptions
This class includes test options. It also includes shared options defined in BaseOptions.
options/test_options.py:4
↓ 1 callers
Class
TrainOptions
This class includes training options. It also includes shared options defined in BaseOptions.
options/train_options.py:4
↓ 1 callers
Class
Upsample
models/stylegan_networks.py:97
↓ 1 callers
Class
Visualizer
This class includes several functions that can display/save images and print/save logging information. It uses a Python library 'visdom' for disp
util/visualizer.py:46
Class
BaseDataset
This class is an abstract base class (ABC) for datasets. To create a subclass, you need to implement the following four functions: -- <__init
data/base_dataset.py:13
Class
BaseModel
This class is an abstract base class (ABC) for models. To create a subclass, you need to implement the following five functions: -- <__ini
models/base_model.py:8
Class
BaseOptions
This class defines options used during both training and test time. It also implements several helper functions such as parsing, printing, and sa
options/base_options.py:9
Class
CUTModel
This class implements CUT and FastCUT model, described in the paper Contrastive Learning for Unpaired Image-to-Image Translation Taesung Park
models/cut_model.py:9
Class
CycleGANModel
This class implements the CycleGAN model, for learning image-to-image translation without paired data. The model training requires '--datas
models/cycle_gan_model.py:8
Class
DCLModel
This class implements DCLGAN model. This code is inspired by CUT and CycleGAN.
models/dcl_model.py:10
Class
Downsample
models/stylegan_networks.py:118
Class
E_adaIN
models/networks.py:649
Class
FASTCUTModel
This class implements CUT and FastCUT model, described in the paper Contrastive Learning for Unpaired Image-to-Image Translation Taesung Park
models/fastcut_model.py:9
Class
GANLoss
Define different GAN objectives. The GANLoss class abstracts away the need to create the target label tensor that has the same size as the in
models/networks.py:339
Class
Generator
models/stylegan_networks.py:439
Class
GetData
A Python script for downloading CycleGAN or pix2pix datasets. Parameters: technique (str) -- One of: 'cyclegan' or 'pix2pix'. ver
util/get_data.py:11
Class
GroupedChannelNorm
models/networks.py:1419
Class
ImageFolder
data/image_folder.py:40
Class
LinearBlock
models/networks.py:871
Class
PatchDiscriminator
Defines a PatchGAN discriminator
models/networks.py:1403
Class
ResnetDecoder
Resnet-based decoder that consists of a few Resnet blocks + a few upsampling operations.
models/networks.py:1041
Class
ResnetEncoder
Resnet-based encoder that consists of a few downsampling + several Resnet blocks
models/networks.py:1098
Class
SIMDCLModel
This class implements DCLGAN with similarity loss. This code is inspired by CUT and CycleGAN.
models/simdcl_model.py:10
Class
SingleDataset
This dataset class can load a set of images specified by the path --dataroot /path/to/data. It can be used for generating CycleGAN results only f
data/single_dataset.py:6
Class
SingleImageDataset
This dataset class can load unaligned/unpaired datasets. It requires two directories to host training images from domain A '/path/to/data/tr
data/singleimage_dataset.py:10
Class
TemplateDataset
A template dataset class for you to implement custom datasets.
data/template_dataset.py:19
Class
TemplateModel
models/template_model.py:23
Class
TileStyleGAN2Discriminator
models/stylegan_networks.py:786
Class
UnalignedDataset
This dataset class can load unaligned/unpaired datasets. It requires two directories to host training images from domain A '/path/to/data/tr
data/unaligned_dataset.py:9