Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keras 2.3.0 breaks this code #9

Open
cameronbergh opened this issue Oct 7, 2019 · 2 comments
Open

keras 2.3.0 breaks this code #9

cameronbergh opened this issue Oct 7, 2019 · 2 comments

Comments

@cameronbergh
Copy link

causes

` TypeError: gradient_penalty_loss() got an unexpected keyword argument 'sample_weight'

the solution is: pip install 'keras==2.2.5'
`

@ucasiggcas
Copy link

I have the same problem,mine is 2.3.1,not compatible

@sxeyyy
Copy link

sxeyyy commented May 21, 2020

i also have the same issue.

is there a way we can modify the code at all to fix it? i think it might be a similar issue to something described here (tensorflow/addons#1229).

does it relate to an issue (https://stackoverflow.com/questions/57505839/why-am-i-getting-this-unexpected-keyword-argument-typeerror) with the use of *args and **kwargs? in the traceback i do notice *args and **kwargs getting used in tensorflow_backend.py. modifying the code of tensorflow seems pretty daunting, but maybe we can rewrite stylegan.py? how would we go about this?

i was unable to run stylegan.py even after installing keras 2.2.5. that just gave me another error telling me that it didn't support tensorflow 2.x. even after installing tensorflow 1.14 i still got a bunch of errors telling me stuff was depreciated so idk if downgrading can reliably solve things anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants