Skip to content

Is there an error in the custom-vqgan.yaml file I wrote myself? #22

@Zzzzzzzzlh

Description

@Zzzzzzzzlh

When I trained with my own dataset, the error reported was: TypeError: init() got an unexpected keyword argument 'filelist'. The filelist is the path to my dataset's .txt file that I added in custom-vqgan. Whenever I change the name filelist, the corresponding part in the error message also changes. May I ask what causes this issue?here is my yaml (in configs)

model:
base_learning_rate: 4.5e-6
target: ldm.models.autoencoder.AutoencoderKL
params:
monitor: "val/rec_loss"
embed_dim: 3
lossconfig:
target: ldm.modules.losses.LPIPSWithDiscriminator
params:
disc_start: 50001
kl_weight: 0.000001
disc_weight: 0.5

ddconfig:
  double_z: True
  z_channels: 3
  resolution: 256
  in_channels: 3
  out_ch: 3
  ch: 128
  ch_mult: [ 1,2,4 ]  # num_down = len(ch_mult)-1
  num_res_blocks: 2
  attn_resolutions: [ ]
  dropout: 0.0

data:
target: main.DataModuleFromConfig
params:
batch_size: 12
wrap: True
train:
target: ldm.data.imagenet.ImageNetSRTrain
params:
filelist: "/root/autodl-tmp/ldms/your_folder/train.txt"
size: 256
degradation: pil_nearest
validation:
target: ldm.data.imagenet.ImageNetSRValidation
params:
filelist: "/root/autodl-tmp/ldms/your_folder/test.txt"
size: 256
degradation: pil_nearest

lightning:
callbacks:
image_logger:
target: main.ImageLogger
params:
batch_frequency: 1000
max_images: 8
increase_log_steps: True

trainer:
benchmark: True
accumulate_grad_batches: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions