This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in mmf/mmf/trainers/mmf_trainer.py | |
# add line below | |
from user import all_user_callbacks | |
# add two lines in | |
@registry.register_trainer("mmf") | |
class MMFTrainer( | |
TrainerCallbackHookMixin, | |
TrainerTrainingLoopMixin, | |
TrainerDeviceMixin, | |
TrainerEvaluationLoopMixin, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import torch.nn as nn | |
class BidafAttnModule(nn.Module): | |
def __init__(self, hidden_size): | |
super(BidafAttnModule, self).__init__() | |
self.fc = nn.Sequential( | |
nn.Linear(hidden_size, hidden_size, bias=False), | |
nn.ReLU() | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p download | |
mkdir -p fail | |
mkdir -p error | |
START=1 | |
END=9500 | |
STEP=500 | |
rm -rf num_seq.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MSCOCO Pascal_VOC | |
person person | |
bicycle bicycle | |
car car | |
motorcycle --motorbike | |
airplane --aeroplane | |
bus bus | |
train train | |
truck |