{"id":27192,"date":"2025-03-01T09:10:45","date_gmt":"2025-03-01T01:10:45","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=27192"},"modified":"2025-02-28T18:12:33","modified_gmt":"2025-02-28T10:12:33","slug":"weiruankaiyuanshenqiom","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/weiruankaiyuanshenqiom\/","title":{"rendered":"\u5fae\u8f6f\u5f00\u6e90\u795e\u5668OmniParser-v2.0\u672c\u5730\u90e8\u7f72\u6559\u7a0b"},"content":{"rendered":"<p>\u5b89\u88c5python\u73af\u5883<\/p>\n<p>\u6211\u8fd9\u91cc\u662f\u4ee5\u524d\u5b89\u88c5\u597d\u7684\u7248\u672c\uff1apython 3.11.5\uff0c\u8fd9\u91cc\u4e0d\u518d\u4ecb\u7ecd\uff0c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u5728\u7f51\u4e0a\u627e\u6559\u7a0b\u3002<\/p>\n<p>\u5b89\u88c5Anaconda<\/p>\n<p>\u6211\u8fd9\u91cc\u662f\u4ee5\u524d\u5b89\u88c5\u597d\u7684\u7248\u672c\uff1aconda 23.7.4\uff0c\u8fd9\u91cc\u4e5f\u4e0d\u518d\u4ecb\u7ecd\uff0c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u5728\u7f51\u4e0a\u627e\u6559\u7a0b\u3002<\/p>\n<p>\u5b89\u88c5OmniParser<\/p>\n<pre lang=\"\" spellcheck=\"false\"><span role=\"presentation\">git clone https:\/\/github.com\/microsoft\/OmniParser.git<\/span>\r\n<span role=\"presentation\">cd OmniParser<\/span><\/pre>\n<p>\u521b\u5efa\u4e13\u5c5e\u73af\u5883<\/p>\n<pre lang=\"powershell\" spellcheck=\"false\"><span role=\"presentation\">conda\u00a0create\u00a0-n\u00a0\"omni\"\u00a0python==3.11<\/span>\r\n<span role=\"presentation\">conda\u00a0activate\u00a0omni<\/span><\/pre>\n<p>\u6267\u884c\u4e0b\u9762\u547d\u4ee4\uff0c\u4e0b\u8f7d\u6240\u9700\u8981\u7684\u4f9d\u8d56\u5305\u3002<\/p>\n<pre lang=\"\" spellcheck=\"false\"><span role=\"presentation\">pip install -r requirements.txt<\/span><\/pre>\n<p>\u4e0b\u8f7d\u00a0<span spellcheck=\"false\"><code>microsoft\/OmniParser-v2.0<\/code><\/span>\u00a0\u6a21\u578b\u6587\u4ef6\uff0c\u4f46\u662f\u4e00\u76f4\u8fdb\u4e0d\u53bb\u7f51\u5740\uff08<span spellcheck=\"false\">https:\/\/huggingface.co<\/span>\uff09\uff0c\u6240\u4ee5\u6211\u9009\u62e9\u4e86<span spellcheck=\"false\">https:\/\/hf-mirror.com\/<\/span>\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/f10ff4954c145ef.png\" \/><\/p>\n<p>\u627e\u5230microsoft\/OmniParser-v2.0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/389b7cee28990b6.png\" \/><\/p>\n<p>\u8fdb\u53bb\u4e4b\u540e\u70b9\u51fbicon_caption\u548cicon_detect)\u6587\u4ef6\u5939\uff0c\u5206\u522b\u4e0b\u8f7d\u91cc\u9762\u6587\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/1e524eb6bfb0c78.png\" \/><\/p>\n<p>\u4e3b\u8981\u4e3a\u4e0b\u97626\u4e2a\u6587\u4ef6\u3002<\/p>\n<pre lang=\"\" spellcheck=\"false\"><span role=\"presentation\">icon_detect\/train_args.yaml<\/span>\r\n<span role=\"presentation\">icon_detect\/model.pt<\/span>\r\n<span role=\"presentation\">icon_detect\/model.yaml<\/span>\r\n<span role=\"presentation\">icon_caption\/config.json<\/span>\r\n<span role=\"presentation\">icon_caption\/generation_config.json<\/span>\r\n<span role=\"presentation\">icon_caption\/model.safetensors<\/span><\/pre>\n<p>\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u65b0\u5efa\u76ee\u5f55\uff0c\u5177\u4f53\u5982\u4e0b<\/p>\n<pre lang=\"\" spellcheck=\"false\"><span role=\"presentation\">mkdir -p weights\/icon_detect<\/span>\r\n<span role=\"presentation\">mkdir -p weights\/icon_caption_florence<\/span><\/pre>\n<p>\u5b8c\u6210\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/ad146745eeffb74.png\" \/><\/p>\n<p>\u5c06\u524d\u9762\u4e0b\u8f7d\u597d\u7684\u6587\u4ef6\u5206\u522b\u5bf9\u5e94\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/c32fc60d6ac432c.png\" \/><\/p>\n<p>\u8fd0\u884c python gradio_demo.py \u547d\u4ee4\uff0c\u7a0d\u7b49\u4e4b\u540e\u51fa\u73b0\u5982\u4e0b\u9762\u62a5\u9519\u3002<\/p>\n<pre lang=\"\" spellcheck=\"false\"><span role=\"presentation\">[2025-02-25 20:11:26,669] [ WARNING] easyocr.py:80 - Neither CUDA nor MPS are available - defaulting to CPU. Note: This module is much faster with a GPU.<\/span>\r\n<span role=\"presentation\">Traceback (most recent call last):<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connection.py\", line 203, in _new_conn<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 sock = connection.create_connection(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3utilconnection.py\", line 85, in create_connection<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 raise err<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3utilconnection.py\", line 73, in create_connection<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 sock.connect(sa)<\/span>\r\n<span role=\"presentation\">TimeoutError: timed out<\/span>\r\n\r\n<span role=\"presentation\">The above exception was the direct cause of the following exception:<\/span>\r\n\r\n<span role=\"presentation\">Traceback (most recent call last):<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connectionpool.py\", line 790, in urlopen<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 response = self._make_request(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connectionpool.py\", line 491, in _make_request<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 raise new_e<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connectionpool.py\", line 467, in _make_request<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 self._validate_conn(conn)<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connectionpool.py\", line 1096, in _validate_conn<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 conn.connect()<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connection.py\", line 611, in connect<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 self.sock = sock = self._new_conn()<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connection.py\", line 212, in _new_conn<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 raise ConnectTimeoutError(<\/span>\r\n<span role=\"presentation\">urllib3.exceptions.ConnectTimeoutError: (&lt;urllib3.connection.HTTPSConnection object at 0x0000019B3B7505D0&gt;, 'Connection to huggingface.co timed out. (connect timeout=10)')<\/span>\r\n\r\n<span role=\"presentation\">The above exception was the direct cause of the following exception:<\/span>\r\n\r\n<span role=\"presentation\">Traceback (most recent call last):<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesrequestsadapters.py\", line 486, in send<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 resp = conn.urlopen(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3connectionpool.py\", line 844, in urlopen<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 retries = retries.increment(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesurllib3utilretry.py\", line 515, in increment<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 raise MaxRetryError(_pool, url, reason) from reason \u00a0# type: ignore[arg-type]<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: \/microsoft\/Florence-2-base\/resolve\/main\/config.json (Caused by ConnectTimeoutError(&lt;urllib3.connection.HTTPSConnection object at 0x0000019B3B7505D0&gt;, 'Connection to huggingface.co timed out. (connect timeout=10)'))<\/span>\r\n\r\n<span role=\"presentation\">During handling of the above exception, another exception occurred:<\/span>\r\n\r\n<span role=\"presentation\">Traceback (most recent call last):<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubfile_download.py\", line 1376, in _get_metadata_or_catch_error<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 metadata = get_hf_file_metadata(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubutils_validators.py\", line 114, in _inner_fn<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 return fn(*args, **kwargs)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubfile_download.py\", line 1296, in get_hf_file_metadata<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 r = _request_wrapper(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 ^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubfile_download.py\", line 280, in _request_wrapper<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 response = _request_wrapper(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubfile_download.py\", line 303, in _request_wrapper<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 response = get_session().request(method=method, url=url, **params)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesrequestssessions.py\", line 589, in request<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 resp = self.send(prep, **send_kwargs)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesrequestssessions.py\", line 703, in send<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 r = adapter.send(request, **kwargs)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubutils_http.py\", line 96, in send<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 return super().send(request, *args, **kwargs)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagesrequestsadapters.py\", line 507, in send<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 raise ConnectTimeout(e, request=request)<\/span>\r\n<span role=\"presentation\">requests.exceptions.ConnectTimeout: (MaxRetryError(\"HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: \/microsoft\/Florence-2-base\/resolve\/main\/config.json (Caused by ConnectTimeoutError(&lt;urllib3.connection.HTTPSConnection object at 0x0000019B3B7505D0&gt;, 'Connection to huggingface.co timed out. (connect timeout=10)'))\"), '(Request ID: 3ae795ae-e87f-45e3-8c1b-26c359494139)')<\/span>\r\n\r\n<span role=\"presentation\">The above exception was the direct cause of the following exception:<\/span>\r\n\r\n<span role=\"presentation\">Traceback (most recent call last):<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagestransformersutilshub.py\", line 342, in cached_file<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 resolved_file = hf_hub_download(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubutils_validators.py\", line 114, in _inner_fn<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 return fn(*args, **kwargs)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubfile_download.py\", line 862, in hf_hub_download<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 return _hf_hub_download_to_cache_dir(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubfile_download.py\", line 969, in _hf_hub_download_to_cache_dir<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 _raise_on_head_call_error(head_call_error, force_download, local_files_only)<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packageshuggingface_hubfile_download.py\", line 1489, in _raise_on_head_call_error<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 raise LocalEntryNotFoundError(<\/span>\r\n<span role=\"presentation\">huggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.<\/span>\r\n\r\n<span role=\"presentation\">The above exception was the direct cause of the following exception:<\/span>\r\n\r\n<span role=\"presentation\">Traceback (most recent call last):<\/span>\r\n<span role=\"presentation\">\u00a0 File \"E:OmniParsergradio_demo.py\", line 16, in &lt;module&gt;<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 caption_model_processor = get_caption_model_processor(model_name=\"florence2\", model_name_or_path=\"weights\/icon_caption_florence\")<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"E:OmniParserutilutils.py\", line 63, in get_caption_model_processor<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 processor = AutoProcessor.from_pretrained(\"microsoft\/Florence-2-base\", trust_remote_code=True)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagestransformersmodelsautoprocessing_auto.py\", line 305, in from_pretrained<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 config = AutoConfig.from_pretrained(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagestransformersmodelsautoconfiguration_auto.py\", line 1075, in from_pretrained<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagestransformersconfiguration_utils.py\", line 594, in get_config_dict<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagestransformersconfiguration_utils.py\", line 653, in _get_config_dict<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 resolved_config_file = cached_file(<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^^^^^^^^^^^^<\/span>\r\n<span role=\"presentation\">\u00a0 File \"D:DevelopmentToolsPythonLibsite-packagestransformersutilshub.py\", line 385, in cached_file<\/span>\r\n<span role=\"presentation\">\u00a0 \u00a0 raise EnvironmentError(<\/span>\r\n<span role=\"presentation\">OSError: We couldn't connect to 'https:\/\/huggingface.co' to load this file, couldn't find it in the cached files and it looks like microsoft\/Florence-2-base is not the path to a directory containing a file named config.json.<\/span>\r\n<span role=\"presentation\">Checkout your internet connection or see how to run the library in offline mode at 'https:\/\/huggingface.co\/docs\/transformers\/installation#offline-mode'.<\/span><\/pre>\n<p>\u770b\u7740\u9519\u8bef\u5f88\u591a\uff0c\u5176\u5b9e\u5c31\u662f\u00a0<span spellcheck=\"false\">https:\/\/huggingface.co<\/span>\u00a0\u8bbf\u95ee\u4e0d\u5230\u7684\u539f\u56e0\u3002\u6211\u4eec\u5c06constants.py\u6587\u4ef6\u91cc\u7684\u00a0<span spellcheck=\"false\">https:\/\/huggingface.co<\/span>\u00a0\u66ff\u6362\u4e3a<span spellcheck=\"false\">https:\/\/hf-mirror.com<\/span>\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/fdcb5fce2d6d9dc.png\" \/><\/p>\n<p>\u4e3a\u6b64\uff0c\u8fd8\u662f\u4e0d\u653e\u5fc3\uff0c\u7f51\u4e0a\u627e\u4e86\u6559\u7a0b\uff0c\u53c8\u5728\u6700\u524d\u9762\u52a0\u4e86\u4e00\u884c\u8bbe\u7f6e\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/5f68843cbc748ff.png\" \/><\/p>\n<p>\u518d\u6b21\u8f93\u5165 python gradio_demo.py \u547d\u4ee4\uff0c\u8fd0\u884c\u6210\u529f\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/4f1a6a9ebca66a7.png\" \/><\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u8f93\u5165\uff1a<span spellcheck=\"false\">http:\/\/127.0.0.1:7861<\/span>\uff0c\u663e\u793a\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/1d25fd437e8f5f1.png\" \/><\/p>\n<p>\u622a\u4e00\u5f20\u684c\u9762\u7684\u56fe\uff0c\u8ba9\u4ed6\u8fdb\u884c\u5206\u6790\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/b2f0448db6edcb2.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5python\u73af\u5883 \u6211\u8fd9\u91cc\u662f\u4ee5\u524d\u5b89\u88c5\u597d\u7684\u7248\u672c\uff1apython 3.11.5\uff0c\u8fd9\u91cc\u4e0d\u518d\u4ecb\u7ecd\uff0c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u5728\u7f51\u4e0a\u627e\u6559\u7a0b\u3002 \u5b89\u88c5Anaconda \u6211\u8fd9\u91cc\u662f\u4ee5\u524d\u5b89\u88c5\u597d\u7684\u7248\u672c\uff1aconda 23.7.4\uff0c\u8fd9\u91cc\u4e5f\u4e0d\u518d\u4ecb\u7ecd\uff0c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u5728\u7f51\u4e0a\u627e\u6559\u7a0b\u3002 \u5b89\u88c5&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182],"tags":[],"class_list":["post-27192","post","type-post","status-publish","format-standard","hentry","category-shicao"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/27192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=27192"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/27192\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=27192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=27192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=27192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}