8000 some issues when running the phase2.py on CIFAR-100 · Issue #1 · haochenglouis/cores · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
some issues when running the phase2.py on CIFAR-100 #1
Open
@Pengfight

Description

@Pengfight

When I run the phase2.py on CIFAR-100, the error happened.

Traceback (most recent call last):
  File "phase2.py", line 287, in <module>
    result = train_and_eval(args.tag, args.dataroot, resume=args.resume, save_path=args.save, only_eval=args.only_eval, unsupervised=args.unsupervised, devices=args.gpu)
  File "phase2.py", line 140, in train_and_eval
    trainloader, unsuploader, testloader = get_dataloaders(C.get()['dataset'], C.get()['batch'], C.get()['batch_unsup'], 
  File "/home/cuipeng/cores/phase2/data.py", line 156, in get_dataloaders
    sampler=StratifiedSampler(trainset.targets), drop_last=True)
AttributeError: 'Subset' object has no attribute 'targets'

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

      0