gwxie / Document-Dewarping-with-Control-Points

Document Dewarping with Control Points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About train.py

zxy-0714 opened this issue · comments

Hello, there are some problems when I run the train.py as you said.Could you give me some help?
try:
FlatImg.validateOrTestModelV3(epoch, trian_t, validate_test='v_l4')
FlatImg.validateOrTestModelV3(epoch, 0, validate_test='t')
except:
print(' Error: validate or test')
the training output:【 Error: validate or test'】,I want to know what the function of this code ? Will this error affect the training process?
Looking forward to your reply!

Hello, there are some problems when I run the train.py as you said.Could you give me some help? try: FlatImg.validateOrTestModelV3(epoch, trian_t, validate_test='v_l4') FlatImg.validateOrTestModelV3(epoch, 0, validate_test='t') except: print(' Error: validate or test') the training output:【 Error: validate or test'】,I want to know what the function of this code ? Will this error affect the training process? Looking forward to your reply!

Hi,
This is used to visualize the unwarped image. Does not affect training.

The file path may not be found in

perturbed_img_path = self.data_path_validate + '/png/' + RGB_name

If the validation image was not saved during generation, You can specify ‘perturbed_img‘.