vega icon indicating copy to clipboard operation
vega copied to clipboard

Erro function download_pretrained_model()

Open vanessasidrim opened this issue 3 years ago • 2 comments

When trying to run sp-nas an error is displayed: message: download_pretrained_model() takes 2 positional arguments but 3 were given

vanessasidrim avatar Jan 26 '22 11:01 vanessasidrim

@vanessasidrim

In the current master branch code of Vega, download_pretrained_model() is invoked only in model_zoo.py. The parameters of the function are correct.

There are two possibilities:

One is that you're using old code.

To confirm your current code location, do as follows:

python3 -c "import vega; print(vega.__path__)"

The output path will tell you where is vega code location. Then you can make sure that the code in that location is up to date.

Another possibility is that your code invokes download_pretrained_model(). Please remove the last parameter.

zhangjiajin avatar Jan 27 '22 01:01 zhangjiajin

@vanessasidrim

Vega 1.8.1 is now released, which may help you.

https://github.com/huawei-noah/vega/releases/download/v1.8.1/noah_vega-1.8.1-py3-none-any.whl

zhangjiajin avatar Jan 28 '22 01:01 zhangjiajin