vega
vega copied to clipboard
Erro function download_pretrained_model()
When trying to run sp-nas an error is displayed:
message: download_pretrained_model() takes 2 positional arguments but 3 were given
@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.
@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