KeyuWu-CS / MonoHair

Code of MonoHair: High-Fidelity Hair Modeling from a Monocular Video
Other
97 stars 4 forks source link

Issue at multiview_optimization.py #15

Open LaurentGarcia opened 2 months ago

LaurentGarcia commented 2 months ago

I believe this code is not working:

if name == 'main': args = get_config() dataprocess = DataProcessor(args)

dataprocess.run(args.subject_path,args.ignore_existing)

current_irispath_list =  glob(os.path.join(args.path, args.subject, 'iris', '*.txt'))
current_lmkpath_list =  glob(os.path.join(args.path, args.subject, 'landmark2d', '*.txt'))

imagepath_list = []
for path in current_irispath_list:
    name = path.split('/')[-1][:-4]
    if os.path.exists(os.path.join(args.path, args.subject, 'landmark2d', name+ '.txt')):
        imagepath_list.append(os.path.join(args.path, args.subject, 'matting', name + '.png'))

for example in my custom data, folder va: for every irish , format name: data\va\iris\496 and then check if exist : \va\landmark2d\data\va\iris\496.txt always false because concanate both?

Sounds weird.

KeyuWu-CS commented 2 months ago

I think you should cancel the comment in dataprocess.run(args.subject_path,args.ignore_existing). This code will generate data\va\iris\496.txt . This step will check if you have geneated iris.txt file. and dataprocess.run(args.subject_path,args.ignore_existing) will generate iris/*.txt for each image(if eye is visible). You can refer to answer