Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Un-hardcode #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions vilbert/vilbert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,10 +1608,10 @@ def __init__(self, config, num_labels, dropout_prob=0.1, default_gpu=True):
config, self.bert.embeddings.word_embeddings.weight
)
self.vil_prediction = SimpleClassifier(
config.bi_hidden_size, config.bi_hidden_size * 2, 3129, 0.5
config.bi_hidden_size, config.bi_hidden_size * 2, self.num_labels, 0.5
)
self.vil_prediction_gqa = SimpleClassifier(
config.bi_hidden_size, config.bi_hidden_size * 2, 1533, 0.5
config.bi_hidden_size, config.bi_hidden_size * 2, self.num_labels, 0.5
)
self.vil_binary_prediction = SimpleClassifier(
config.bi_hidden_size * 2, config.bi_hidden_size * 2, 2, 0.5
Expand Down