IDM-VTON icon indicating copy to clipboard operation
IDM-VTON copied to clipboard

getting issues while executing

Open hiralU opened this issue 1 year ago • 0 comments

File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\transformers\utils\import_utils.py", line 1172, in get_module return importlib.import_module("." + module_name, self.name) File "C:\Users\HP-SERVER.conda\envs\mynewenv\lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in call_with_frames_removed File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\transformers\models\clip\image_processing_clip.py", line 22, in from ...image_transforms import ( File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\transformers\image_transforms.py", line 48, in import tensorflow as tf File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow_init.py", line 37, in from tensorflow.python.tools import module_util as module_util File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow\python_init.py", line 37, in from tensorflow.python.eager import context File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow\python\eager\context.py", line 29, in from tensorflow.core.framework import function_pb2 File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2 File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2 File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2 File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2 File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in _descriptor.FieldDescriptor( File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\google\protobuf\descriptor.py", line 561, in new _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "\IDM-VTON\app.py", line 3, in from src.tryon_pipeline import StableDiffusionXLInpaintPipeline as TryonPipeline File "\src\tryon_pipeline.py", line 21, in from transformers import ( File "", line 1075, in _handle_fromlist File "\AppData\Roaming\Python\Python310\site-packages\transformers\utils\import_utils.py", line 1163, in getattr value = getattr(module, name) File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\transformers\utils\import_utils.py", line 1162, in getattr module = self._get_module(self._class_to_module[name]) File "C:\Users\HP-SERVER\AppData\Roaming\Python\Python310\site-packages\transformers\utils\import_utils.py", line 1174, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.clip.image_processing_clip because of the following error (look up to see its traceback): Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

hiralU avatar Aug 21 '24 09:08 hiralU