Skip to content

what is modeling_bert.py? #59

Open

Description

python3 ./metro/tools/end2end_inference_bodymesh.py --resume_checkpoint ./models/metro_release/metro_3dpw_state_dict.bin--image_file_or_path ./samples/human-body

Traceback (most recent call last):
File "./metro/tools/end2end_inference_bodymesh.py", line 20, in
from metro.modeling.bert import BertConfig, METRO
File "/media/khw/T7/3DHuman/MeshTransformer/metro/modeling/bert/init.py", line 3, in
from .modeling_bert import (BertConfig, BertModel,
File "/media/khw/T7/3DHuman/MeshTransformer/metro/modeling/bert/modeling_bert.py", line 1
../../../transformers/pytorch_transformers/modeling_bert.py
^
SyntaxError: invalid syntax

how can i fix it?
what should i do now?

Activity

  1. kevinlin311tw commented on Apr 2, 2022

    @kevinlin311tw
    Member

    We use a symbolic link to reference the official codes in Huggingface's transformer. Please have a check if you clone the repo. You could try running git clone --recursive https://github.com/microsoft/MeshTransformer.git and it should clone Huggingface's transformer submodule automatically. Thanks.

  2. luckyday2022 commented on May 24, 2023

    @luckyday2022

    How did you solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions