Skip to content
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

pretrained model RuntimeError #8

Open
miraclerepuduce opened this issue Nov 9, 2023 · 0 comments
Open

pretrained model RuntimeError #8

miraclerepuduce opened this issue Nov 9, 2023 · 0 comments

Comments

@miraclerepuduce
Copy link

Very stunning work. But I found a problem when I used the checkpoint you provided for testing.
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

Traceback (most recent call last):
File "E:\softwareyang\envs\pytorch_env3.10\lib\site-packages\torch\utils\data\dataloader.py", line 1132, in _try_get_data
data = self._data_queue.get(timeout=timeout)
File "E:\softwareyang\envs\pytorch_env3.10\lib\multiprocessing\queues.py", line 114, in get
raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "F:\jinpengjuGrade22master\ExposureCorrection-main\test.py", line 41, in
for i, data in enumerate(dataset):
File "E:\softwareyang\envs\pytorch_env3.10\lib\site-packages\torch\utils\data\dataloader.py", line 630, in next
data = self._next_data()
File "E:\softwareyang\envs\pytorch_env3.10\lib\site-packages\torch\utils\data\dataloader.py", line 1328, in _next_data
idx, data = self._get_data()
File "E:\softwareyang\envs\pytorch_env3.10\lib\site-packages\torch\utils\data\dataloader.py", line 1294, in _get_data
success, data = self._try_get_data()
File "E:\softwareyang\envs\pytorch_env3.10\lib\site-packages\torch\utils\data\dataloader.py", line 1145, in _try_get_data
raise RuntimeError(f'DataLoader worker (pid(s) {pids_str}) exited unexpectedly') from e
RuntimeError: DataLoader worker (pid(s) 19580) exited unexpectedly

how to fix it?

thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant