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

ERROR WITH NO ERROR #7

Closed
fog88 opened this issue Sep 10, 2022 · 7 comments
Closed

ERROR WITH NO ERROR #7

fog88 opened this issue Sep 10, 2022 · 7 comments

Comments

@fog88
Copy link

fog88 commented Sep 10, 2022

Hi,
I don't understand what happened with opennsfw2 code.
My installation is OK. I install Keras and Tensorflow 2.0 with CUDA but nothing,
Any idea ?
I attached a screenshot.
Thank you to help me
0008_2022-09-10_17_heures_18

@bhky
Copy link
Owner

bhky commented Sep 11, 2022

Hi! Thank you for the message and your interest in the library.

My guess is that, the auto downloading of the weights file does not work on a Windows machine because of some path issues. Please try downloading the weights file manually from here, and follow this example (you have to supply the weights_path, see here). It should work. Thanks!

@fog88
Copy link
Author

fog88 commented Sep 11, 2022

I going to solve the problem but I've got a question : where is the function load_weights ??? It's called but there is no write in file

@fog88
Copy link
Author

fog88 commented Sep 11, 2022

0005_2022-09-11_15_heures_27

@bhky
Copy link
Owner

bhky commented Sep 11, 2022

The model is a tf.keras.Model object, it already has a load_weights method, you may take a look at the official doc.

@fog88
Copy link
Author

fog88 commented Sep 11, 2022

I've found what is wrong.
Thank you for the method load_weight it is from tensorflow like predict() method. I understand now.
My mistake is my CUDA CuDNN. I don't why but I'm sure because python is something wrong just there when it load CuDNN

@bhky
Copy link
Owner

bhky commented Sep 12, 2022

Is it working now? 🤔

@fog88
Copy link
Author

fog88 commented Sep 12, 2022

Yeah It work ! I've changed path in _download.py and I reinstall CUDA.
Good !
Thanks !

@bhky bhky closed this as completed Sep 17, 2022
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

2 participants