Skip to content

Issues on training model "_classcond" #3

@usernameisntavailableble

Description

Hey! I was trying to play with threeseqdel_classcond (or threeseqabs_classcond) however two problems came out.

  1. preprocessing the directory into a .npz is not possible, i.g.
python data/qd.py /the/output/dir/cat threeseqdel_classcond

raises errors

Traceback (most recent call last):
  File "SOMEPATH/chirodiff_test/data/qd.py", line 281, in <module>
    dummy_sample = ds[0]
  File "SOMEPATH/chirodiff_test/data/qd.py", line 140, in __getitem__
    return self.represent(self.get_sketch(i))
  File "SOMEPATHchirodiff_test/data/qd.py", line 201, in represent
    label = torch.tensor(sketch.label, dtype=torch.int64)
TypeError: an integer is required (got type NoneType)
  1. If i skip this step as suggested in README.md, and start the training. In the config.yml, I changed repr into threeseqdel_classcond. And for example, under the /the/output/dir/ I have two folders, cat and dog, seperately including some sketches, and therefore I setup num_classes: typing.Optional[int] = 2 in config.yml , as suggesed in ln 74 in main.py, and therefor I have root_dir in config.yml to be /the/output/dir/, and naturally the error becomes
SOMEPATH/pytorch_lightning/utilities/data.py:103: UserWarning: Total length of `CombinedLoader` across ranks is zero. Please make sure this was your intention.
  rank_zero_warn(
`Trainer.fit` stopped: No training batches.

I guess this could be easily fixed if you could remind some special settings/path selections specifically for the class condition?

Many thanks!

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