Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: '../data/tiny_images.bin' #3

Open
siryul opened this issue Dec 29, 2023 · 0 comments

Comments

@siryul
Copy link

siryul commented Dec 29, 2023

When i was running python main.py --dataset cifar10 --imb_type exp --imb_factor 0.01 --alg open -p 100 --lambda_o 1 -ab 512 --gpu_str 'cpu', there occurs an errors: FileNotFoundError: [Errno 2] No such file or directory: '../data/tiny_images.bin', please tell me what is this, and how to solve it? Thanks :)The follow is the error info:

Traceback (most recent call last):
  File "/Volumes/T7/Code4Paper/open-sampling/main.py", line 156, in <module>
    main()
  File "/Volumes/T7/Code4Paper/open-sampling/main.py", line 87, in main
    main_worker(args.gpu, ngpus_per_node, args)
  File "/Volumes/T7/Code4Paper/open-sampling/main.py", line 122, in main_worker
    alg = create_alg(args, gpu, num_classes, cls_num_list, train_dataset)
  File "/Volumes/T7/Code4Paper/open-sampling/alg/utils.py", line 9, in create_alg
    alg = OODNoise(args, gpu, num_classes, cls_num_list, train_dataset)
  File "/Volumes/T7/Code4Paper/open-sampling/alg/ood_noise.py", line 12, in __init__
    super(OODNoise, self).__init__(args, gpu, num_classes, cls_num_list, train_dataset)
  File "/Volumes/T7/Code4Paper/open-sampling/alg/oe.py", line 18, in __init__
    self.ood_data = create_ood_dataset(args)
  File "/Volumes/T7/Code4Paper/open-sampling/dataset/utils.py", line 52, in create_ood_dataset
    ood_dataset = TinyImages(transform=trn.Compose(
  File "/Volumes/T7/Code4Paper/open-sampling/dataset/tinyimages_80mn_loader.py", line 11, in __init__
    data_file = open('../data/tiny_images.bin', "rb")
FileNotFoundError: [Errno 2] No such file or directory: '../data/tiny_images.bin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant