microsoft / MeshTransformer

Research code for CVPR 2021 paper "End-to-End Human Pose and Mesh Reconstruction with Transformers"
https://arxiv.org/abs/2012.09760
MIT License
614 stars 95 forks source link

what is modeling_bert.py? #59

Open khw11044 opened 2 years ago

khw11044 commented 2 years ago

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?

kevinlin311tw commented 2 years ago

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.

luckyday2022 commented 1 year ago

How did you solve the problem?