Can't train hypergan on mac

时间:2018-07-24 10:21:22

标签: python

Recently I have been trying to run hypergan to test out the features for a project. Everytime I try to start training in a small test folder it has an error. I cd into the folder and typed this command:

hypergan train . -s 16x16x3 -f png -b 32 --sample_every 500 --config mymodel.json

this is the error it gives me:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/hypergan", line 67, in <module>
    config = hc.Selector().load(config_filename)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/hyperchamber/selector.py", line 112, in load
    content = open(filename)
TypeError: expected str, bytes or os.PathLike object, not NoneType

1 个答案:

答案 0 :(得分:0)

您似乎正在尝试从名为“”的文件夹中获取训练数据。这是您要达到的目标吗?因为该错误与“文件名”有关。试试这个:

hypergan train foldername -s 16x16x3 -f png -b 32 --sample_every 500 --config mymodel.json

您需要更改文件夹,因此请尝试使用文件夹的位置替换文件夹名称,例如Users/mainuser/documents/trainingdata