Closed oliverban closed 9 months ago
hi @oliverban , your machine looks awesome to run this, mostly likely an issue with python environment. could you please try it again? I've just pushed a new codebase, but make sure to pull and reinstall python requirements
When running "uvicorn "app-txt2img:app" --host 0.0.0.0 --port 7860 --reload" i get the below error
C:\Users\Oliver\Documents\Github\Real-Time-Latent-Consistency-Model>uvicorn "app-txt2img:app" --host 0.0.0.0 --port 7860 --reload ←[32mINFO←[0m: Will watch for changes in these directories: ['C:\Users\Oliver\Documents\Github\Real-Time-Latent-Consistency-Model'] ←[32mINFO←[0m: Uvicorn running on ←[1mhttp://0.0.0.0:7860←[0m (Press CTRL+C to quit) ←[32mINFO←[0m: Started reloader process [←[36m←[1m18300←[0m] using ←[36m←[1mWatchFiles←[0m Process SpawnProcess-1: Traceback (most recent call last): File "C:\Python\lib\site-packages\tensorboard\compat__init.py", line 42, in tf from tensorboard.compat import notf # noqa: F401 ImportError: cannot import name 'notf' from 'tensorboard.compat' (C:\Python\lib\site-packages\tensorboard\compat\init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Python\lib\multiprocessing\process.py", line 314, in _bootstrap self.run() File "C:\Python\lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "C:\Python\lib\site-packages\uvicorn_subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "C:\Python\lib\site-packages\uvicorn\server.py", line 59, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Python\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Python\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "C:\Python\lib\site-packages\uvicorn\server.py", line 66, in serve config.load() File "C:\Python\lib\site-packages\uvicorn\config.py", line 471, in load self.loaded_app = import_from_string(self.app) File "C:\Python\lib\site-packages\uvicorn\importer.py", line 21, in import_from_string module = importlib.import_module(module_str) File "C:\Python\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\Oliver\Documents\Github\Real-Time-Latent-Consistency-Model\app-txt2img.py", line 16, in
from diffusers import DiffusionPipeline, AutoencoderTiny
File "C:\Python\lib\site-packages\diffusers__init.py", line 3, in
from .configuration_utils import ConfigMixin
File "C:\Python\lib\site-packages\diffusers\configuration_utils.py", line 34, in
from .utils import (
File "C:\Python\lib\site-packages\diffusers\utils__init.py", line 21, in
from .accelerate_utils import apply_forward_hook
File "C:\Python\lib\site-packages\diffusers\utils\accelerate_utils.py", line 24, in
import accelerate
File "C:\Python\lib\site-packages\accelerate__init.py", line 3, in
from .accelerator import Accelerator
File "C:\Python\lib\site-packages\accelerate\accelerator.py", line 39, in
from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
File "C:\Python\lib\site-packages\accelerate\tracking.py", line 42, in
from torch.utils import tensorboard
File "C:\Python\lib\site-packages\torch\utils\tensorboard\ init__.py", line 12, in
from .writer import FileWriter, SummaryWriter # noqa: F401
File "C:\Python\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in
from ._embedding import (
File "C:\Python\lib\site-packages\torch\utils\tensorboard_embedding.py", line 9, in
_HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
File "C:\Python\lib\site-packages\tensorboard\lazy.py", line 65, in getattr
return getattr(load_once(self), attr_name)
File "C:\Python\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
cache[arg] = f(arg)
File "C:\Python\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
module = load_fn()
File "C:\Python\lib\site-packages\tensorboard\compat\init.py", line 45, in tf
import tensorflow
File "C:\Python\lib\site-packages\tensorflow\init__.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "C:\Python\lib\site-packages\tensorflow\python\ init.py", line 37, in
from tensorflow.python.eager import context
File "C:\Python\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "C:\Python\lib\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:\Python\lib\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:\Python\lib\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_resourcehandlepb2
File "C:\Python\lib\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_tensorshapepb2
File "C:\Python\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "C:\Python\lib\site-packages\google\protobuf\descriptor.py", line 544, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot 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:
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Any help is appreciated, want to test out this gem with my webcam!
Windows 10 latest AMD Threadripper 2x3090 Nvidia GPU 64GB RAM Installed in My documents with full rights on an NVME-SSD