Skip to content

Attribute Error when generating samples for HyImage 2.1 #2209

@Sarania

Description

@Sarania

Originally this was about my CPU Text encoder issue but I resolved that one below. The other questions are still relevant though! It just runs on a single thread whereas in the inference script it works as expected. I can get it running with --fp8_vl instead but... oof >_<. I also have the same problem as with Musubi where if I don't specify --max_data_loader_n_workers 4 it will get stuck waiting on some future that never returns.

Lastly this is just me I guess but I can't for the life of me figure out the correct way to specify optimizer args on the command line, I always get some variation of:

Traceback (most recent call last):
File "/home/blyss/projects/sd-scripts/hunyuan_image_train_network.py", line 709, in
trainer.train(args)
File "/home/blyss/projects/sd-scripts/train_network.py", line 767, in train
optimizer_name, optimizer_args, optimizer = train_util.get_optimizer(args, trainable_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/blyss/projects/sd-scripts/library/train_util.py", line 4899, in get_optimizer
key, value = arg.split("=")
^^^^^^^^^^
ValueError: too many values to unpack (expected 2)

Ways I've tried:
--optimizer_args "weight_decay=0.01 eps=(1e-30,1e-16) betas=(0.9,0.999,0.9999)"
--optimizer_args "weight_decay=0.01, eps=(1e-30,1e-16), betas=(0.9,0.999,0.9999)"
--optimizer_args "weight_decay=0.01,eps=(1e-30,1e-16),betas=(0.9,0.999,0.9999)"
--optimizer_args "[weight_decay=0.01, eps=(1e-30,1e-16), betas=(0.9,0.999,0.9999)]"

etc I just... am about to hard code it XD

Edit: See I did use came_pytorch.CAME | {'weight_decay': 0.01, 'eps': (1e-30, 1e-16), 'betas': (0.9, 0.999, 0.9999)} WITNESS MY DEFAULT KWARGS 😂

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