Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5abb4bc

Browse files
committed
disable matplotlib and make parser correct
1 parent 462d70f commit 5abb4bc

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

mvsnet/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import numpy as np
1515

1616
import cv2
17-
import matplotlib.pyplot as plt
17+
#import matplotlib.pyplot as plt
1818
import tensorflow as tf
1919

2020
sys.path.append("../")

mvsnet/train.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
from model import inference, mvsnet_loss, depth_refine
2727
from homography_warping import get_homographies, homography_warping
2828

29-
FLAGS = tf.app.flags.FLAGS
30-
31-
3229
# params for datasets
3330
tf.app.flags.DEFINE_string('dtu_data_root', '/data/dtu/',
3431
"""Path to dtu dataset.""")
@@ -86,6 +83,8 @@
8683
tf.app.flags.DEFINE_float('gamma', 0.9,
8784
"""Learning rate decay rate.""")
8885

86+
FLAGS = tf.app.flags.FLAGS
87+
8988
class MVSGenerator:
9089
""" data generator class, tf only accept generator without param """
9190
def __init__(self, sample_list, view_num):
@@ -306,15 +305,5 @@ def main(argv=None): # pylint: disable=unused-argument
306305

307306

308307
if __name__ == '__main__':
309-
310-
parser = argparse.ArgumentParser()
311-
parser.add_argument('--ckpt_step', type=int, default = FLAGS.ckpt_step)
312-
parser.add_argument('--view_num', type=int, default = FLAGS.view_num)
313-
args = parser.parse_args()
314-
315-
FLAGS.ckpt_step = args.ckpt_step
316-
FLAGS.view_num = args.view_num
317-
print ('Training MVSNet with %d views' % args.view_num)
318-
319-
308+
print ('Training MVSNet with %d views' % FLAGS.view_num)
320309
tf.app.run()

0 commit comments

Comments
 (0)