Closed athenawisdoms closed 1 year ago
I get the error TypeError: object of type 'NoneType' has no len() when running finetune.py using a text file for my dataset.
TypeError: object of type 'NoneType' has no len()
finetune.py
This error is raised because data.val_data is None. Looking into TrainTxt class, it notice it does not set self.val_data in TrainTxt.prepare_data.
data.val_data
None
TrainTxt
self.val_data
TrainTxt.prepare_data
Do not know how to fix this myself, hope to get some help!
If not using validation set, you should pass --val_set_size=0
I get the error
TypeError: object of type 'NoneType' has no len()
when runningfinetune.py
using a text file for my dataset.This error is raised because
data.val_data
isNone
. Looking intoTrainTxt
class, it notice it does not setself.val_data
inTrainTxt.prepare_data
.Do not know how to fix this myself, hope to get some help!