yinanhe / ForgeryNet

[CVPR 2021 Oral] ForgeryNet: A Versatile Benchmark for Comprehensive Forgery Analysis
100 stars 4 forks source link

Error when run main.py #41

Open Eve-Wang opened 1 year ago

Eve-Wang commented 1 year ago

hi ,when I git clone your code and run main.py,there is one mistake

File "/eve/code/ForgeryNet/intra_dataset_code/xception.py", line 94, in Xception bn_var_mode=syncbnVarMode_t.L2, use_sync_bn=True, bypass_last_bn=False, dropout=0, **kwargs): NameError: name 'syncbnVarMode_t' is not defined

seem like there is something missing,do you have any solution? Thx so much

yinanhe commented 1 year ago

you can simplely remove bn_var_mode=syncbnVarMode_t.L2 in line94