Walter0807 / MotionBERT

[ICCV 2023] PyTorch Implementation of "MotionBERT: A Unified Perspective on Learning Human Motion Representations"
Apache License 2.0
1.06k stars 131 forks source link

Fix infer_wild.py error when running on windows #69

Open upbit opened 1 year ago

upbit commented 1 year ago

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.
robotNo201 commented 10 months ago

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.