Skip to content

运行single_train.py报错 #3

Description

@HBdingdang

作者您好,我在运行single_train.py后报错,暂时不知道如何解决,您能帮我看一下什么问题吗
运行后打印输出:
`
Downloading: "https://download.pytorch.org/models/vgg11-bbd30ac9.pth" to C:\Users\41475/.cache\torch\checkpoints\vgg11-bbd30ac9.pth
100.0%
Stage 1: fine tuning the neural network ...

Epoch: 0
Stage 1: fine tuning the neural network ...
接着报错如下:
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.
ForkingPickler(file, protocol).dump(obj)

BrokenPipeError: [Errno 32] Broken pipe
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions