Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is modeling_bert.py? #59

Open
khw11044 opened this issue Mar 22, 2022 · 2 comments
Open

what is modeling_bert.py? #59

khw11044 opened this issue Mar 22, 2022 · 2 comments

Comments

@khw11044
Copy link

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
Copy link
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.

@luckyday2022
Copy link

How did you solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants