-
Notifications
You must be signed in to change notification settings - Fork 361
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
在抱脸网下载模型时出错了 #125
Comments
full tutorial auto installers if you cant make it work SUPIR: New SOTA Open Source Image Upscaler & Enhancer Model Better Than Magnific & Topaz AI Tutorial Complete Guide to SUPIR Enhancing and Upscaling Images Like in Sci-Fi Movies on Your PC |
please stop advertising installers that cost money on patreon |
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /media/caj/TEN/YJ/SUPIR-master/gradio_demo.py:44 in │
│ │
│ 41 │ raise ValueError('Currently support CUDA only.') │
│ 42 │
│ 43 # load SUPIR │
│ ❱ 44 model, default_setting = create_SUPIR_model(args.opt, SUPIR_sign='Q', │
│ 45 if args.loading_half_params: │
│ 46 │ model = model.half() │
│ 47 if args.use_tile_vae: │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/SUPIR/util.py:36 in create_SUPIR_model │
│ │
│ 33 │
│ 34 def create_SUPIR_model(config_path, SUPIR_sign=None, load_default_sett │
│ 35 │ config = OmegaConf.load(config_path) │
│ ❱ 36 │ model = instantiate_from_config(config.model).cpu() │
│ 37 │ print(f'Loaded model config from [{config_path}]') │
│ 38 │ if config.SDXL_CKPT is not None: │
│ 39 │ │ model.load_state_dict(load_state_dict(config.SDXL_CKPT), stric │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/sgm/util.py:175 in instantiate_from_config │
│ │
│ 172 │ │ elif config == "is_unconditional": │
│ 173 │ │ │ return None │
│ 174 │ │ raise KeyError("Expected key
target
to instantiate.") ││ ❱ 175 │ return get_obj_from_str(config["target"])(**config.get("params", d │
│ 176 │
│ 177 │
│ 178 def get_obj_from_str(string, reload=False, invalidate_cache=True): │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/SUPIR/models/SUPIR_model.py:14 in init │
│ │
│ 11 │
│ 12 class SUPIRModel(DiffusionEngine): │
│ 13 │ def init(self, control_stage_config, ae_dtype='fp32', diffusio │
│ ❱ 14 │ │ super().init(*args, **kwargs) │
│ 15 │ │ control_model = instantiate_from_config(control_stage_config) │
│ 16 │ │ self.model.load_control_model(control_model) │
│ 17 │ │ self.first_stage_model.denoise_encoder = copy.deepcopy(self.fi │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/sgm/models/diffusion.py:61 in init │
│ │
│ 58 │ │ │ if sampler_config is not None │
│ 59 │ │ │ else None │
│ 60 │ │ ) │
│ ❱ 61 │ │ self.conditioner = instantiate_from_config( │
│ 62 │ │ │ default(conditioner_config, UNCONDITIONAL_CONFIG) │
│ 63 │ │ ) │
│ 64 │ │ self.scheduler_config = scheduler_config │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/sgm/util.py:175 in instantiate_from_config │
│ │
│ 172 │ │ elif config == "is_unconditional": │
│ 173 │ │ │ return None │
│ 174 │ │ raise KeyError("Expected key
target
to instantiate.") ││ ❱ 175 │ return get_obj_from_str(config["target"])(**config.get("params", d │
│ 176 │
│ 177 │
│ 178 def get_obj_from_str(string, reload=False, invalidate_cache=True): │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/sgm/modules/encoders/modules.py:89 in │
│ init │
│ │
│ 86 │ │ super().init() │
│ 87 │ │ embedders = [] │
│ 88 │ │ for n, embconfig in enumerate(emb_models): │
│ ❱ 89 │ │ │ embedder = instantiate_from_config(embconfig) │
│ 90 │ │ │ assert isinstance( │
│ 91 │ │ │ │ embedder, AbstractEmbModel │
│ 92 │ │ │ ), f"embedder model {embedder.class.name} has to │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/sgm/util.py:175 in instantiate_from_config │
│ │
│ 172 │ │ elif config == "is_unconditional": │
│ 173 │ │ │ return None │
│ 174 │ │ raise KeyError("Expected key
target
to instantiate.") ││ ❱ 175 │ return get_obj_from_str(config["target"])(**config.get("params", d │
│ 176 │
│ 177 │
│ 178 def get_obj_from_str(string, reload=False, invalidate_cache=True): │
│ │
│ /media/caj/TEN/YJ/SUPIR-master/sgm/modules/encoders/modules.py:462 in │
│ init │
│ │
│ 459 │ ): # clip-vit-base-patch32 │
│ 460 │ │ super().init() │
│ 461 │ │ assert layer in self.LAYERS │
│ ❱ 462 │ │ self.tokenizer = CLIPTokenizer.from_pretrained(version if SDX │
│ 463 │ │ self.transformer = CLIPTextModel.from_pretrained(version if S │
│ 464 │ │ self.device = device │
│ 465 │ │ self.max_length = max_length │
│ │
│ /home/caj/anaconda3/envs/Diff4R/lib/python3.8/site-packages/transformers/tok │
│ enization_utils_base.py:1770 in from_pretrained │
│ │
│ 1767 │ │ │ │ elif is_remote_url(file_path): │
│ 1768 │ │ │ │ │ resolved_vocab_files[file_id] = download_url(file │
│ 1769 │ │ │ else: │
│ ❱ 1770 │ │ │ │ resolved_vocab_files[file_id] = cached_file( │
│ 1771 │ │ │ │ │ pretrained_model_name_or_path, │
│ 1772 │ │ │ │ │ file_path, │
│ 1773 │ │ │ │ │ cache_dir=cache_dir, │
│ │
│ /home/caj/anaconda3/envs/Diff4R/lib/python3.8/site-packages/transformers/uti │
│ ls/hub.py:409 in cached_file │
│ │
│ 406 │ user_agent = http_user_agent(user_agent) │
│ 407 │ try: │
│ 408 │ │ # Load from URL or cache if already cached │
│ ❱ 409 │ │ resolved_file = hf_hub_download( │
│ 410 │ │ │ path_or_repo_id, │
│ 411 │ │ │ filename, │
│ 412 │ │ │ subfolder=None if len(subfolder) == 0 else subfolder, │
│ │
│ /home/caj/anaconda3/envs/Diff4R/lib/python3.8/site-packages/huggingface_hub/ │
│ utils/_validators.py:106 in inner_fn │
│ │
│ 103 │ │ │ kwargs.items(), # Kwargs values │
│ 104 │ │ ): │
│ 105 │ │ │ if arg_name in ["repo_id", "from_id", "to_id"]: │
│ ❱ 106 │ │ │ │ validate_repo_id(arg_value) │
│ 107 │ │ │ │
│ 108 │ │ │ elif arg_name == "token" and arg_value is not None: │
│ 109 │ │ │ │ has_token = True │
│ │
│ /home/caj/anaconda3/envs/Diff4R/lib/python3.8/site-packages/huggingface_hub/ │
│ utils/validators.py:160 in validate_repo_id │
│ │
│ 157 │ │ ) │
│ 158 │ │
│ 159 │ if not REPO_ID_REGEX.match(repo_id): │
│ ❱ 160 │ │ raise HFValidationError( │
│ 161 │ │ │ "Repo id must use alphanumeric chars or '-', '', '.', '-- │
│ 162 │ │ │ " forbidden, '-' and '.' cannot start or end the name, max │
│ 163 │ │ │ f" '{repo_id}'." │
╰──────────────────────────────────────────────────────────────────────────────╯
HFValidationError: Repo id must use alphanumeric chars or '-', '', '.', '--'
and '..' are forbidden, '-' and '.' cannot start or end the name, max length is
96: ''.
错误如上
The text was updated successfully, but these errors were encountered: