Open ahaliu1 opened 4 years ago
I too encountered this issue, just to check out I renamed the files as model.ckpt. It only reads the file model.ckpt-1000000.index (after rename). Printing it shows it to be an empty list.
Were you able to get through this issue?
I downloaded biobert_v1.1_pubmed file. it contains five files. -bert_config.json -bio_bert_vacab.txt -model.ckpt-1000000.data-00000-of-00001 -model.ckpt-1000000.index -model.ckpt-1000000.meta then I set tf_path = "....\weights\biobert_v1.1_pubmed\model.ckpt" I got an error in block 4 ''' error
NameError Traceback (most recent call last) in 1 excluded = ['BERTAdam','_power','global_step'] ----> 2 init_vars = list(filter(lambda x:all([True if e not in x[0] else False for e in excluded]),init_vars))
NameError: name 'init_vars' is not defined ''' the code in block 3 init_vars = tf.train.list_variables(tf_path) did not work. init_vars is empty. could you please help me out?