-
Notifications
You must be signed in to change notification settings - Fork 0
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
bug #1
Comments
已开放
daijiuqian ***@***.***> 于2024年6月27日周四 22:26写道:
…
作者您好,这是一个新颖的方向,我想在您的基础上进行改进。我尝试跑您的代码,但是遇到了错误,您能否看一下是哪里的问题。另外能否开放下载json文件,这个错误应该是json文件和之前cafo,coop等json文件不一致导致的。
Running configs.
{'root_path': '/home/daijq/project/datasets/', 'load_pre_clipn': True,
'load_cache': True, 'search_hp': True, 'search_scale': [7, 3],
'search_step': [200, 20], 'alpha': 0.3, 'beta': 0.9, 'gamma': 0.1,
'threshold': 0.5, 'gpt3_prompt_file': './gpt_file/imagenet_prompt.json',
'dataset': 'imagenet', 'shots': 1, 'clip_backbone': 'RN50',
'clipn_backbone': 'ViT-B-16', 'num_classes': 1000, 'positive_num': 1,
'negative_num': 10, 'anchor_num_per_class': 2, 'dalle_dataset':
'dalle_imagenet', 'dalle_shots': 8, 'lr': 0.001, 'augment_epoch': 1,
'train_epoch': 50, 'openset': 'openset', 'open_world': {'is_open_world':
True, 'clean_dataset': True, 'nlb': 0.3, 'ood': 0.0}, 'results_dir':
'./results/imagenet/RN50', 'cache_dir': './caches/imagenet/RN50',
'clipn_cache_dir': './clipn_caches/imagenet'}
Preparing dataset.
Reading split from
/home/daijq/project/datasets/imagenet/split_imagenet.json
Traceback (most recent call last):
File "/home/daijq/project/deil/main.py", line 311, in
main()
File "/home/daijq/project/deil/main.py", line 260, in main
dataset = build_dataset(cfg['dataset'], cfg, clean_data=False)
File "/home/daijq/project/deil/datasets/*init*.py", line 69, in
build_dataset
return dataset_list[dataset](cfg, clean_data)
File "/home/daijq/project/deil/datasets/imagenet.py", line 203, in *init*
train, val = self.read_split(self.split_path, self.image_dir)
File "/home/daijq/project/deil/datasets/imagenet.py", line 313, in
read_split
train = _convert(split['train'])
File "/home/daijq/project/deil/datasets/imagenet.py", line 298, in _convert
for impath, label, classname, incorrect_label, incorrect_classname, domain
in items:
ValueError: not enough values to unpack (expected 6, got 3)
ERROR conda.cli.main_run:execute(124): conda run python
/home/daijq/project/deil/main.py failed. (See above for error)
Process finished with exit code 1
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANR5IVTSFWAK6YHS7W67D3DZJQOJXAVCNFSM6AAAAABKABWVOGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TQMZRHA3TSOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作者您好,这是一个新颖的方向,我想在您的基础上进行改进。我尝试跑您的代码,但是遇到了错误,您能否看一下是哪里的问题。另外能否开放下载json文件,这个错误应该是json文件和之前cafo,coop等json文件不一致导致的。
Running configs.
{'root_path': '/home/daijq/project/datasets/', 'load_pre_clipn': True, 'load_cache': True, 'search_hp': True, 'search_scale': [7, 3], 'search_step': [200, 20], 'alpha': 0.3, 'beta': 0.9, 'gamma': 0.1, 'threshold': 0.5, 'gpt3_prompt_file': './gpt_file/imagenet_prompt.json', 'dataset': 'imagenet', 'shots': 1, 'clip_backbone': 'RN50', 'clipn_backbone': 'ViT-B-16', 'num_classes': 1000, 'positive_num': 1, 'negative_num': 10, 'anchor_num_per_class': 2, 'dalle_dataset': 'dalle_imagenet', 'dalle_shots': 8, 'lr': 0.001, 'augment_epoch': 1, 'train_epoch': 50, 'openset': 'openset', 'open_world': {'is_open_world': True, 'clean_dataset': True, 'nlb': 0.3, 'ood': 0.0}, 'results_dir': './results/imagenet/RN50', 'cache_dir': './caches/imagenet/RN50', 'clipn_cache_dir': './clipn_caches/imagenet'}
Preparing dataset.
Reading split from /home/daijq/project/datasets/imagenet/split_imagenet.json
Traceback (most recent call last):
File "/home/daijq/project/deil/main.py", line 311, in
main()
File "/home/daijq/project/deil/main.py", line 260, in main
dataset = build_dataset(cfg['dataset'], cfg, clean_data=False)
File "/home/daijq/project/deil/datasets/init.py", line 69, in build_dataset
return dataset_list[dataset](cfg, clean_data)
File "/home/daijq/project/deil/datasets/imagenet.py", line 203, in init
train, val = self.read_split(self.split_path, self.image_dir)
File "/home/daijq/project/deil/datasets/imagenet.py", line 313, in read_split
train = _convert(split['train'])
File "/home/daijq/project/deil/datasets/imagenet.py", line 298, in _convert
for impath, label, classname, incorrect_label, incorrect_classname, domain in items:
ValueError: not enough values to unpack (expected 6, got 3)
ERROR conda.cli.main_run:execute(124):
conda run python /home/daijq/project/deil/main.py
failed. (See above for error)Process finished with exit code 1
The text was updated successfully, but these errors were encountered: