tancik / StegaStamp

Invisible Hyperlinks in Physical Photographs
http://www.matthewtancik.com/stegastamp
MIT License
689 stars 193 forks source link

Error code < TypeError: join() argument must be str or bytes, not 'NoneType' > while training #39

Closed ghost closed 3 years ago

ghost commented 3 years ago

I have cloned the project from github and installed the requirements after than i have specified the "TRAIN_PATH" but when i try to launch the train.py i am facing with error code:

Traceback (most recent call last):
  File "C:/Users/yavuz/PycharmProjects/Tensorflowpytorch/StegaStamp/train.py", line 224, in <module>
    main()
  File "C:/Users/yavuz/PycharmProjects/Tensorflowpytorch/StegaStamp/train.py", line 151, in main
    writer = tf.summary.FileWriter(join(LOGS_Path,EXP_NAME),sess.graph)
  File "C:\Users\yavuz\AppData\Local\Programs\Python\Python37\lib\ntpath.py", line 115, in join
    genericpath._check_arg_types('join', path, *paths)
  File "C:\Users\yavuz\AppData\Local\Programs\Python\Python37\lib\genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'

Process finished with exit code 1

Note: I have changed the /// parser.add_argument('exp_name', type=str) /// to /// parser.add_argument('--exp_name', type=str)/// Because i was also having an error in other way.

I have read all the paper and wanted to try it but having hard time on debugging. Because i do not have much experience on python.

Waiting for your help.

tancik commented 3 years ago

I think the exp_name input argument is not being passed in correctly, hence the value is None.

ghost commented 3 years ago

I thought as the same way. Any solution suggestion ?

ghost commented 3 years ago

Solved