huawei-noah / vega

AutoML tools chain
http://www.noahlab.com.hk/opensource/vega/
Other
842 stars 175 forks source link

Erro function download_pretrained_model() #212

Open vanessasidrim opened 2 years ago

vanessasidrim commented 2 years ago

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

zhangjiajin commented 2 years ago

@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 commented 2 years ago

@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