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

error occurs when text embedding using bert #12

Open
BaoyanWang opened this issue Nov 16, 2021 · 0 comments
Open

error occurs when text embedding using bert #12

BaoyanWang opened this issue Nov 16, 2021 · 0 comments

Comments

@BaoyanWang
Copy link

Dear sir, thank for your work. I'd like to use bert instead of blstm when text embedding. error occurs as follow:
File "train.py", line 135, in
learner=Learner()
File "train.py", line 52, in init
self.yolo_model, self.yolo_body = self.create_model(yolo_weights_path=config['pretrained_weights'],freeze_body=config['free_body'])
File "train.py", line 87, in create_model
model_body = yolo_body(image_input, q_input, num_anchors,config) ###### place
File "/datadrive/soat_nlp/MCN/MCN-master/model/mcn_model.py", line 170, in yolo_body
return Model([inputs,q_input], [y,E,co_enery])
File "/usr/local/lib/python3.5/dist-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/network.py", line 93, in init
self._init_graph_network(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/network.py", line 147, in _init_graph_network
if len(set(self.inputs)) != len(self.inputs):
TypeError: unhashable type: 'list'

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

1 participant