Skip to content

Error with Torch #169

@Ganesh2556

Description

@Ganesh2556

❓ Ask a Question: Hi. DOT can't start. It gives this error.

Description:

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
torchvision\models_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
torchvision\models_utils.py:223: UserWarning: Arguments other than a weight enum or None for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing weights=None.
warnings.warn(msg)
Traceback (most recent call last):
File "torch\serialization.py", line 354, in _check_seekable
f.seek(f.tell())
AttributeError: 'NoneType' object has no attribute 'seek'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "dot_main_.py", line 69, in run
File "dot\dot.py", line 131, in generate
File "dot\commons\model_option.py", line 184, in generate_from_camera
File "dot\simswap\option.py", line 88, in create_model
File "torch\serialization.py", line 791, in load
with _open_file_like(f, 'rb') as opened_file:
File "torch\serialization.py", line 276, in _open_file_like
return _open_buffer_reader(name_or_buffer)
File "torch\serialization.py", line 261, in init
_check_seekable(buffer)
File "torch\serialization.py", line 357, in _check_seekable
raise_err_msg(["seek", "tell"], e)
File "torch\serialization.py", line 350, in raise_err_msg
raise type(e)(msg)
AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.

[ WARN:0@77.344] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (539) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions