djiajunustc / TransVG

157 stars 26 forks source link

Ghost variables and function in data_loader.py #35

Open preetom-saha-arko opened 1 year ago

preetom-saha-arko commented 1 year ago

Three variables named 'ratio', 'dw' and 'dh' have been used in data_loader.py but these variables have no reference anywhere in the file.

The function named _truncate_seq_pair() has also been used in the file but hasn't been implemented anywhere. I guess you took it from https://github.com/google-research/bert/blob/master/run_classifier.py