Open xwjabc opened 1 year ago
In the preprocessing step for ViLD, a series of tfrecord files should be created. However, there is an issue in the file path of the tfrecords to create. In create_lvis_tf_record.py: https://github.com/tensorflow/tpu/blob/01b67067be64987e9519b35342ba91d3179daeed/models/official/detection/projects/vild/preprocessing/create_lvis_tf_record.py#L215 and https://github.com/tensorflow/tpu/blob/01b67067be64987e9519b35342ba91d3179daeed/models/official/detection/projects/vild/preprocessing/create_lvis_tf_record.py#L266 add FLAGS.dest_dir twice to the path, which incurs issues.
create_lvis_tf_record.py
FLAGS.dest_dir
I also encountered this error, my solution was to replace osp.join(FLAGS.dest_dir, record_filename)) on line 215 with record_filename).
osp.join(FLAGS.dest_dir, record_filename))
record_filename)
In the preprocessing step for ViLD, a series of tfrecord files should be created. However, there is an issue in the file path of the tfrecords to create. In
create_lvis_tf_record.py
: https://github.com/tensorflow/tpu/blob/01b67067be64987e9519b35342ba91d3179daeed/models/official/detection/projects/vild/preprocessing/create_lvis_tf_record.py#L215 and https://github.com/tensorflow/tpu/blob/01b67067be64987e9519b35342ba91d3179daeed/models/official/detection/projects/vild/preprocessing/create_lvis_tf_record.py#L266 addFLAGS.dest_dir
twice to the path, which incurs issues.