Skip to content

报下面的错误,也可以正常推理,麻烦帮忙看下。 #1106

Closed as not planned
@xudajun222

Description

@xudajun222

Checks

  • This template is only for bug reports, usage problems go with 'Help Wanted'.
  • I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
  • I have searched for existing issues, including closed ones, and couldn't find a solution.
  • I am using English to submit this issue to facilitate community communication.

Environment Details

4090显卡

Steps to Reproduce

0%| | 0/1 [00:00<?, ?it/s]
INFO: 127.0.0.1:12085 - "GET /synthesize?spk_id=222&text=%E5%A4%A7%E5%AE%B6%E7%9C%8B%E8%BF%87%E6%9D%A5%EF%BC%8C%E4%BB%8A%E5%A4%A9%E7%9B%B4%E6%92%AD%E9%97%B4%E4%B8%8A%E6%9E%B6%E7%9A%84%E8%BF%99%E6%AC%BE%E9%9E%8B%E5%AD%90%EF%BC%8C%E6%98%AF%E5%9B%BD%E5%86%85%E4%B8%80%E7%BA%BF%E5%A5%B3%E9%9E%8B%E5%93%81%E7%89%8C%E7%9A%84%E4%B8%93%E6%9F%9C%E6%AD%A3%E5%93%81%E3%80%82 HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 396, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 70, in call
return await self.app(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, _send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\routing.py", line 735, in app
await route.handle(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "api_e.py", line 777, in api_e.api_synthesize.lambda1
File "D:\xinbanAI\GTS_LIB\runtime1\lib\asyncio\threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "api_e.py", line 777, in api_e.api_synthesize.lambda1
File "api_e.py", line 628, in api_e.F5TTS.infer_id
File "api_e.py", line 286, in api_e.infer_process_id
File "api_e.py", line 405, in infer_batch_process_id
File "api_e.py", line 410, in api_e.infer_batch_process_id
File "api_e.py", line 368, in process_batch
File "api_e.py", line 369, in api_e.infer_batch_process_id.process_batch
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "D:\xinbanAI\GTS_LIB\src\f5_tts\model\cfm.py", line 202, in sample
trajectory = odeint(fn, y0, t, **self.odeint_kwargs)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torchdiffeq_impl\odeint.py", line 80, in odeint
solution = solver.integrate(t)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torchdiffeq_impl\solvers.py", line 114, in integrate
dy, f0 = self._step_func(self.func, t0, dt, t1, y0)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torchdiffeq_impl\fixed_grid.py", line 10, in _step_func
f0 = func(t0, y0, perturb=Perturb.NEXT if self.perturb else Perturb.NONE)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torchdiffeq_impl\misc.py", line 197, in forward
return self.base_func(t, y)
File "D:\xinbanAI\GTS_LIB\src\f5_tts\model\cfm.py", line 166, in fn
pred = self.transformer(
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "D:\xinbanAI\GTS_LIB\src\f5_tts\model\backbones\dit.py", line 212, in forward
x = self.input_embed(x, cond, text_embed, drop_audio_cond=drop_audio_cond)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\xinbanAI\GTS_LIB\runtime1\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "D:\xinbanAI\GTS_LIB\src\f5_tts\model\backbones\dit.py", line 94, in forward
x = self.proj(torch.cat((x, cond, text_embed), dim=-1))
RuntimeError: Sizes of tensors must match except in dimension 2. Expected size 1653 but got size 1280 for tensor number 2 in the list.
100%|████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03<00:00, 3.36s/it]
INFO: 127.0.0.1:12083 - "GET /synthesize?spk_id=222&text=%E5%A5%BD%E7%9A%84%EF%BC%8C1%E5%8F%B7%E9%93%BE%E6%8E%A5%EF%BC%8C%E5%8E%BB%E7%9C%8B%E3%80%82 HTTP/1.1" 200 OK

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions