Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

训练过程中出现错误 #28

Open
Larerr opened this issue Dec 8, 2023 · 2 comments
Open

训练过程中出现错误 #28

Larerr opened this issue Dec 8, 2023 · 2 comments

Comments

@Larerr
Copy link

Larerr commented Dec 8, 2023

运行main.py命令如下:
python main.py --config-name=base prompt.prompt="xx"
报错如下:

  File "/data0/gsgen/main.py", line 19, in main
    trainer = Trainer(cfg)
  File "/data0/gsgen/trainer.py", line 222, in __init__
    self.save_code_snapshot()
  File "/data0/gsgen/trainer.py", line 274, in save_code_snapshot
    files = get_file_list()
  File "/data0/gsgen/utils/misc.py", line 281, in get_file_list
    subprocess.check_output(
  File "/home/miniconda3/envs/gsgen/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/home/miniconda3/envs/gsgen/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'git ls-files -- ":!:load/*"' returned non-zero exit status 128.

经检查应该是gegen/utils/misc.py文件中的如下代码在运行中出了问题:

def get_file_list():
    return [
        b.decode()
        for b in set(
            subprocess.check_output(
                'git ls-files -- ":!:load/*"', shell=True
            ).splitlines()
        )
        | set(  # hard code, TODO: use config to exclude folders or files
            subprocess.check_output(
                "git ls-files --others --exclude-standard", shell=True
            ).splitlines()
        )
    ]

怀疑可能是某个文件没能成功下载,请问作者这种情况下应该怎么处理呀,谢谢!!

@heheyas
Copy link
Contributor

heheyas commented Dec 9, 2023

Hi Larerr,

Thanks for your interest. This error is caused by git lfs (used when creating a code snapshot for better reproducibility). You can simply comment this line

self.save_code_snapshot()

@throb081
Copy link

您好你这边跑通了吗,我这边跑的时候有BUG,:488: DeprecationWarning: Type google.protobuf.pyext._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.
不知道你有没有遇到过。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants