GithubHelp home page GithubHelp logo

huggan.pytorch.lightweight_gan.lightweight_gan.LightweightGAN _from_pretrained requires use_auth_token but this is not passed by the from_pretrained method inherited from ModelHubMixin about community-events HOT 5 CLOSED

huggingface avatar huggingface commented on August 24, 2024
huggan.pytorch.lightweight_gan.lightweight_gan.LightweightGAN _from_pretrained requires use_auth_token but this is not passed by the from_pretrained method inherited from ModelHubMixin

from community-events.

Comments (5)

johnowhitaker avatar johnowhitaker commented on August 24, 2024

PR that maybe fixes the issue: #195

from community-events.

Wauplin avatar Wauplin commented on August 24, 2024

Hi @johnowhitaker, sorry you've experienced this issue and thanks for investigating it :)

We are in the -long- process of removing use_auth_token in favor of token everywhere in the HF ecosystem (instead of having a bit of both which is inconsistent). There is a lot of inertia to this switch because of all the existing code and scripts. What I would suggest here (in #195) is:

And this should definitely solve the issue. LightweightGAN will not be compatible with very old versions of huggingface_hub (<=0.10) but let's not care about that (latest is 0.16.4). The problem with PR #195 currently is that even if it makes the code run, the token is still not passed correctly.

from community-events.

Wauplin avatar Wauplin commented on August 24, 2024

For more context, here is the piece of code that handles use_auth_token => token during the transition process. The plan described in the docstring is delayed by far but overall still the plan.

from community-events.

johnowhitaker avatar johnowhitaker commented on August 24, 2024

@Wauplin Thanks for the help! I updated the PR with those suggested changes.

from community-events.

Wauplin avatar Wauplin commented on August 24, 2024

Thanks for taking care! I just merged the PR :)

from community-events.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.