You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(voiceGLM4) F:\voiceDemo\GLM-4-Voice>python web_demo.py
E:\miniConda\envs\voiceGLM4\Lib\site-packages\torch_jit_internal.py:872: FutureWarning: ignore(True) has been deprecated. TorchScript will now drop the function call on compilation. Use torch.jit.unused now. {}
warnings.warn(
E:\miniConda\envs\voiceGLM4\Lib\site-packages\diffusers\models\lora.py:393: FutureWarning: LoRACompatibleLinear is deprecated and will be removed in version 1.0.0. Use of LoRACompatibleLinear is deprecated. Please switch to PEFT backend by installing PEFT: pip install peft.
deprecate("LoRACompatibleLinear", "1.0.0", deprecation_message)
E:\miniConda\envs\voiceGLM4\Lib\site-packages\torch\nn\utils\weight_norm.py:143: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
F:\voiceDemo\GLM-4-Voice\flow_inference.py:28: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will
execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
self.flow.load_state_dict(torch.load(flow_ckpt_path, map_location=self.device))
F:\voiceDemo\GLM-4-Voice\flow_inference.py:30: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will
execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
self.hift.load_state_dict(torch.load(hift_ckpt_path, map_location=self.device))
信息: 用提供的模式无法找到文件。
To create a public link, set share=True in launch().
Traceback (most recent call last):
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 468, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 463, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 1374, in getresponse
response.begin()
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 318, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 802, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\util\retry.py", line 552, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\packages\six.py", line 769, in reraise
raise value.with_traceback(tb)
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 468, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 463, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 1374, in getresponse
response.begin()
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 318, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\blocks.py", line 2018, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\blocks.py", line 1579, in call_function
prediction = await utils.async_iteration(iterator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 691, in async_iteration
return await anext(iterator)
^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 685, in anext
return await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\anyio_backends_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\anyio_backends_asyncio.py", line 962, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 668, in run_sync_iterator_async
return next(iterator)
^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 829, in gen_wrapper
response = next(iterator)
^^^^^^^^^^^^^^
File "F:\voiceDemo\GLM-4-Voice\web_demo.py", line 108, in inference_fn
response = requests.post(
^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\adapters.py", line 682, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
The text was updated successfully, but these errors were encountered:
http://0.0.0.0:8888无法打开页面,使用http://127.0.0.1:8888后,点击Submit后报错如下。感觉是request的问题,查了些资料,更改0.0.0.0为127.0.0.1或localhost报错不变,对于gradio网络这块不太熟悉。请大家帮忙排查下,谢谢。
(voiceGLM4) F:\voiceDemo\GLM-4-Voice>python web_demo.py
E:\miniConda\envs\voiceGLM4\Lib\site-packages\torch_jit_internal.py:872: FutureWarning: ignore(True) has been deprecated. TorchScript will now drop the function call on compilation. Use torch.jit.unused now. {}
warnings.warn(
E:\miniConda\envs\voiceGLM4\Lib\site-packages\diffusers\models\lora.py:393: FutureWarning:
LoRACompatibleLinear
is deprecated and will be removed in version 1.0.0. Use ofLoRACompatibleLinear
is deprecated. Please switch to PEFT backend by installing PEFT:pip install peft
.deprecate("LoRACompatibleLinear", "1.0.0", deprecation_message)
E:\miniConda\envs\voiceGLM4\Lib\site-packages\torch\nn\utils\weight_norm.py:143: FutureWarning:
torch.nn.utils.weight_norm
is deprecated in favor oftorch.nn.utils.parametrizations.weight_norm
.WeightNorm.apply(module, name, dim)
F:\voiceDemo\GLM-4-Voice\flow_inference.py:28: FutureWarning: You are using
torch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which willexecute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for
weights_only
will be flipped toTrue
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user viatorch.serialization.add_safe_globals
. We recommend you start settingweights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.self.flow.load_state_dict(torch.load(flow_ckpt_path, map_location=self.device))
F:\voiceDemo\GLM-4-Voice\flow_inference.py:30: FutureWarning: You are using
torch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which willexecute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for
weights_only
will be flipped toTrue
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user viatorch.serialization.add_safe_globals
. We recommend you start settingweights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.self.hift.load_state_dict(torch.load(hift_ckpt_path, map_location=self.device))
信息: 用提供的模式无法找到文件。
To create a public link, set
share=True
inlaunch()
.Traceback (most recent call last):
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 468, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 463, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 1374, in getresponse
response.begin()
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 318, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 802, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\util\retry.py", line 552, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\packages\six.py", line 769, in reraise
raise value.with_traceback(tb)
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 468, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\urllib3\connectionpool.py", line 463, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 1374, in getresponse
response.begin()
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 318, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\http\client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\blocks.py", line 2018, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\blocks.py", line 1579, in call_function
prediction = await utils.async_iteration(iterator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 691, in async_iteration
return await anext(iterator)
^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 685, in anext
return await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\anyio_backends_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\anyio_backends_asyncio.py", line 962, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 668, in run_sync_iterator_async
return next(iterator)
^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\gradio\utils.py", line 829, in gen_wrapper
response = next(iterator)
^^^^^^^^^^^^^^
File "F:\voiceDemo\GLM-4-Voice\web_demo.py", line 108, in inference_fn
response = requests.post(
^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\miniConda\envs\voiceGLM4\Lib\site-packages\requests\adapters.py", line 682, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
The text was updated successfully, but these errors were encountered: