Replies: 1 comment
-
|
I checked the json files against a .json repair tool on git and it retuned the following fix: Is this the actual fix for this json issue? Original: def is_timm_config_dict(config_dict: Dict[str, Any]) -> bool: Fixed: [ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I now get this error every time i boot up ruined:
RuntimeError: Failed to import transformers.models.t5.modeling_t5 because of the following error (look up to see its traceback):
cannot import name 'is_timm_config_dict' from 'transformers.utils.generic' (H:\RuinedFooocus_main_2.0.0.win64\RuinedFooocus_main_2.0.0.win64\python_embeded\lib\site-packages\transformers\utils\generic.py)
looking at from import utils import
from .import_utils import (
get_torch_version,
is_flax_available,
is_mlx_available,
is_tf_available,
is_torch_available,
is_torch_fx_proxy,
if i look up all instances of is_timm i get:
H:\RuinedFooocus_main_2.0.0.win64\RuinedFooocus_main_2.0.0.win64\python_embeded\Lib\site-packages\transformers\utils\generic.py
875,5: def is_timm_config_dict(config_dict: Dict[str, Any]) -> bool:
880,5: def is_timm_local_checkpoint(pretrained_model_path: str) -> bool:
897,16: return is_timm_config_dict(config_dict)
903,16: return is_timm_config_dict(config_dict)
then i see pretrained model:
pretrained_model_path is a directory with a config.json
Beta Was this translation helpful? Give feedback.
All reactions