WaqasSultani / AnomalyDetectionCVPR2018

503 stars 183 forks source link

SyntaxError: invalid syntax in line 310 in TrainingAnomalyDetector_public.py #57

Closed cervantes-loves-ai closed 5 years ago

cervantes-loves-ai commented 5 years ago

Don't understand why got this error while running TrainingAnomalyDetector_public.py

TrainingAnomalyDetector_public.py", line 310 print "These iteration=" + str(total_iterations) + ") took: " + str(datetime.now() - time_before) + ", with loss of " + str(batch_loss) ^ SyntaxError: invalid syntax

thanks in advance

Owen-Tian commented 5 years ago

In python3, you must use the bracket to print, like print(...)

PS. If u are working on this paper, maybe we can discuss it. My wechat number is TJTJTJW, you can attach words like 'github' for verification.