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

Problem with image processing #45

Open
Tortugadake opened this issue Feb 15, 2024 · 1 comment
Open

Problem with image processing #45

Tortugadake opened this issue Feb 15, 2024 · 1 comment

Comments

@Tortugadake
Copy link

Hello, I have been using Colab for several months without any issues in processing images (just face swap), and it had been working smoothly until today when it won't allow me to process the image. This is the code that appears:

/content/roop
Traceback (most recent call last):
File "/content/roop/run.py", line 3, in
from roop import core
File "/content/roop/roop/core.py", line 20, in
import roop.ui as ui
File "/content/roop/roop/ui.py", line 15, in
from roop.predictor import predict_frame, clear_predictor
File "/content/roop/roop/predictor.py", line 3, in
import opennsfw2
File "/usr/local/lib/python3.10/dist-packages/opennsfw2/init.py", line 4, in
from ._inference import Aggregation
File "/usr/local/lib/python3.10/dist-packages/opennsfw2/_inference.py", line 16, in
from ._model import make_open_nsfw_model
File "/usr/local/lib/python3.10/dist-packages/opennsfw2/_model.py", line 12, in
from tensorflow.keras import layers # type: ignore # pylint: disable=import-error
File "/usr/local/lib/python3.10/dist-packages/keras/api/_v2/keras/init.py", line 3, in
from keras.api._v2.keras import internal
File "/usr/local/lib/python3.10/dist-packages/keras/api/_v2/keras/init.py", line 3, in
from keras.api._v2.keras import internal
File "/usr/local/lib/python3.10/dist-packages/keras/api/_v2/keras/internal/init.py", line 3, in
from keras.api._v2.keras.internal import backend
File "/usr/local/lib/python3.10/dist-packages/keras/api/_v2/keras/internal/backend/init.py", line 3, in
from keras.src.backend import _initialize_variables as initialize_variables
ImportError: cannot import name '_initialize_variables' from 'keras.src.backend' (/usr/local/lib/python3.10/dist-packages/keras/src/backend/init.py)

@FurkanGozukara
Copy link
Owner

fixed

please consider donating and supporting me

https://www.patreon.com/SECourses
https://www.buymeacoffee.com/drfurkan

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