classner / generating_people

Official code repository for the paper "A Generative Model for People in Clothing".
http://files.is.tuebingen.mpg.de/classner/gp/
Other
158 stars 38 forks source link

Invalid syntax ../template/config.py #6

Closed ShuangjunLiu closed 6 years ago

ShuangjunLiu commented 6 years ago

I ran the code with ./generate 20

I got following error


2018-02-22 23:53:03,842 __main__ INFO Running on host: aclab-H97M-D3H
2018-02-22 23:53:03,843 __main__ INFO Running mode `sample` for experiment `experiments/config/LSM`.
Traceback (most recent call last):
  File "./run.py", line 354, in <module>
    cli()
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "./run.py", line 78, in cli
    path.join(exp_name, 'config.py')) # source this one error?
  File "experiments/config/LSM/config.py", line 1
    ../template/config.py
    ^
SyntaxError: invalid syntax

It seems the syntax can't be recognized ../template/config.py

I am running it on Ubuntu 16.04 python 2.7 (conda) tensorflow 1.4

Thanks.

classner commented 6 years ago

Hi Shuangjun,

this is a git-related error. This file must be a symlink to '../template/config.py', which is automatically created if you git clone the repository, but probably not if you download and unpack it. Alternatively, you can also symlink the files manually (this goes for all files in the folder experiments/config/LSM, except for options.py).

Best, Christoph

ShuangjunLiu commented 6 years ago

Thank you. It works. I uploaded the code from windows. I think that was the cause for symlink failure. ᐧ

On Fri, Feb 23, 2018 at 8:27 AM, Christoph Lassner <notifications@github.com

wrote:

Hi Shuangjun,

this is a git-related error. This file must be a symlink to '../template/config.py', which is automatically created if you git clone the repository, but probably not if you download and unpack it. Alternatively, you can also symlink the files manually (this goes for all files in the folder experiments/config/LSM, except for options.py).

Best, Christoph

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/classner/generating_people/issues/6#issuecomment-368008520, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9cA77Aps9tSMbxfkd2jVTiJSVXoculks5tXrymgaJpZM4SQYrT .

-- Best, Shuangjun Liu