MotionBERT icon indicating copy to clipboard operation
MotionBERT copied to clipboard

Fix infer_wild.py error when running on windows

Open upbit opened this issue 2 years ago • 1 comments

Fix following error on Windows:

RuntimeError: Error(s) in loading state_dict for DSTformer:
        Missing key(s) in state_dict: "temp_embed", "pos_embed", "joints_embed.weight", ...
        Unexpected key(s) in state_dict: "module.temp_embed", "module.pos_embed", "module.joints_embed.weight", ...
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.

upbit avatar Jul 18 '23 09:07 upbit

even motionbert can used in windows, alphapose can't because windows cant build wheels for some packages used in alphapose. I understand the team wanna make their projects looks better by adding windows as an option, but I guess its better not to waste other developers' time.

robotNo201 avatar Dec 10 '23 06:12 robotNo201