Here is the complete error:
Traceback (most recent call last):
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 428, in
main(xargs)
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 398, in main
solver_save_path, train_epoch_best_metric, valid_epoch_best_metric = Self_Train(args,
^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 196, in Self_Train
trainset = my_infer.infer_labels(args, trainset, testset, solver, outer_epoch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 246, in infer_labels
pred_results, b_map_results, logit_results = infer_point(args, trainset, solver, threshold, oute r_epoch, mode='train')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 209, in infer_point
point_logits = point_refiner(None, mask_coarse_logits, mask_features_list, features_scales, feat ures, solver, point_indices_uncertain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 92, in point_refiner
point_coords[:, 0] = w_step / 2.0 + (point_indices % W).to(torch.float) * w_step
^^^^^^
NameError: name 'w_step' is not defined