colab中运行出错FileNotFoundError: class ImageNet in mmcls/datasets/imagenet.py: [Errno 2] #759
Unanswered
dawn1007dx
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
%%writefile /content/mmselfsup/configs/selfsup/simclr/simclr_resnet50_lxb32-coslr-le_tinyin200.py
base = 'simclr_resnet50_8xb32-coslr-200e_in1k.py'
dataset
dataset = dict(
samples_per_gpu=32,
workers_per_gpu=2,
train = dict(
data_source=dict(
data_prefix ='data/tiny-imagenet-200/train',
ann_file ='data/tiny-imagenet-200/train.txt'
)
)
改写了这一部分,但是最后用它运行时,由于继承了原配置文件,其中imagenet_simclr.py中的
dataset=dict(
type=dataset_type,
data_root=data_root,
ann_file='meta/train.txt',
data_prefix=dict(img_path='train/'),
pipeline=train_pipeline))
会报错:找不到'data/imagenet/meta/train.txt‘
Beta Was this translation helpful? Give feedback.
All reactions