You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: