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

[HFUT Student] 官网Dataset Status Protocol直接加载cachedata的代码有问题 #22

Closed
senker216 opened this issue Dec 21, 2024 · 1 comment

Comments

@senker216
Copy link

from edustudio.quickstart import run_edustudio

run_edustudio(
dataset='FrcSub',
cfg_file_name=None,
traintpl_cfg_dict={
'cls': 'GeneralTrainTPL',
},
datatpl_cfg_dict={
'cls': 'CDInterExtendsQDataTPL',
'load_data_from': "cachedata", # specify the loading stage of the dataset
'cache_id': 'cache_default', # cache id, valid when is_save_cache=True
},
modeltpl_cfg_dict={
'cls': 'KaNCD',
},
evaltpl_cfg_dict={
'clses': ['PredictionEvalTPL', 'InterpretabilityEvalTPL'],
}
) 这是官网代码,报错
Traceback (most recent call last):
File "E:\EduStudio-main\run.py", line 135, in
run_edustudio(
File "E:\EduStudio-main\edustudio\quickstart\quickstart.py", line 72, in run_edustudio
raise e
File "E:\EduStudio-main\edustudio\quickstart\quickstart.py", line 57, in run_edustudio
traintpl = cls(cfg)
File "E:\EduStudio-main\edustudio\traintpl\gd_traintpl.py", line 25, in init
super().init(cfg)
File "E:\EduStudio-main\edustudio\traintpl\base_traintpl.py", line 54, in init
self.datatpl = self.get_datatpl_obj()
File "E:\EduStudio-main\edustudio\traintpl\base_traintpl.py", line 87, in get_datatpl_obj
datatpl: BaseDataTPL = self.datatpl_cls.from_cfg(self.cfg)
File "E:\EduStudio-main\edustudio\datatpl\common\general_datatpl.py", line 107, in from_cfg
return cls(cfg, **kwargs)
File "E:\EduStudio-main\edustudio\datatpl\common\edu_datatpl.py", line 30, in init
super().init(cfg, df, df_train, df_valid, df_test, status)
File "E:\EduStudio-main\edustudio\datatpl\common\general_datatpl.py", line 72, in init
self.check_cache()
File "E:\EduStudio-main\edustudio\datatpl\common\general_datatpl.py", line 269, in check_cache
raise ValueError(f"check cache error: {diff}")
ValueError: check cache error: {'values_changed': {"root['is_save_cache']": {'new_value': False, 'old_value': True}}}

@kervias
Copy link
Contributor

kervias commented Dec 23, 2024

感谢您的反馈!我们已在最新代码中处理了该问题

@kervias kervias closed this as completed Dec 23, 2024
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

2 participants