Skip to content

Something's wrong with the training code. #6

@hj611

Description

@hj611

bug1.
SPOT-main/spot_train.py", line 337, in pretrain
ep, tot_loss,feat_loss,loss_clip_order))
UnboundLocalError: local variable 'tot_loss' referenced before assignment

bug2.
File " /SPOT-main/spot_train.py", line 786, in
train_loader = torch.utils.data.DataLoader(spot_dataset.SPOTDataset(subset="train"),
File " /.conda/envs/SPOT/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 270, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File " /.conda/envs/SPOT/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 102, in init
raise ValueError("num_samples should be a positive integer "
ValueError: num_samples should be a positive integer value, but got num_samples=0

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