thu-ml / ares

A Python library for adversarial machine learning focusing on benchmarking adversarial robustness.
https://thu-ml-ares.rtfd.io
Apache License 2.0
476 stars 88 forks source link

Get error when updating the submodules #2

Closed Wenzhao-Xiang closed 4 years ago

Wenzhao-Xiang commented 4 years ago

Hello, I got an error when updating submodules. Error log:

fatal: 引用不是一个树:c6e893728c3e7355e3bc689352011a55798b0e95
无法在子模组路径 'third_party/models' 中检出 'adc01cd76ae0d9d3b2e8dde3ec6bf4086f7da046'
无法在子模组路径 'third_party/trades' 中检出 'c6e893728c3e7355e3bc689352011a55798b0e95'

Is there any solutions?

Fugoes commented 4 years ago

Please using these commands:

git clone https://github.com/thu-ml/realsafe
cd realsafe/
git submodule init
git submodule update --depth 1

If these errors still occur, please check your network stability. Some of the submodules are large, and git clone does NOT support resuming from previous failed download. You might need several retries.

What's more, github.com has gone down several times recently. Make sure you were not blocked by one of them.

Wenzhao-Xiang commented 4 years ago

@Fugoes Thanks for your replying. I just followed the instructions you mentioned, and have tried several times yesterday, but all of them failed. I don't know what went wrong. By the way, it seems that only the submodules 'tensorflow/models' and 'trades' got this error. Finally, I can just use the following workaround:

git clone repo
git reset --hard commit