nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
9.34k stars 1.26k forks source link

ns-download-data does not use proxy from environment #1279

Open arvind-iyer opened 1 year ago

arvind-iyer commented 1 year ago

Describe the bug I am behind a corporate proxy and was unable to download the datasets using ns-download-data. The script uses gdown to download files but gdown does not automatically use the proxy like wget or url, it needs to be explicitly added in the function call like below

gdown(url, output=str(download_path), proxy="http://hostname:port")

To Reproduce Steps to reproduce the behavior:

  1. Connect to network behind a proxy
  2. Run ns-download-data nerfstudio --capture-name=poster
  3. See error image

Expected behavior I am okay with either of two options - proxy information is retrieved from the environment (http_proxy or system network config) or an additional CLI argument is exposed to explicitly include it like below

ns-download-data nerfstudio --capture-name=poster --proxy=http://hostname:port

matyja256 commented 1 year ago

Could you tell me the detailed solution? I have the same problem as you, but I don't know how to solve it. 56a4636498ac824d4ccf819dc61cb1d

matyja256 commented 1 year ago

I add a CLI argument. But it still reported an error, saying that it could not be analyzed. de0ee6a9624a16391000be3d267141a

tancik commented 1 year ago

The --proxy argument has not been added. We welcome PRs that add this.

HaleyCH commented 1 year ago
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
ns-download-data nerfstudio --capture-name=poster

It can solve the problem.