-
Notifications
You must be signed in to change notification settings - Fork 25
Problem with controlnet_texas_samples.ipynb #20
Description
Hi, thank you for your work.
I have a problem with controlnet_texas_samples.ipynb that I can't run the first cell due to an issue with NumPy, Pandas, and Diffuser.
`ValueError Traceback (most recent call last)
Cell In[13], line 12
10 from pathlib import Path
11 from copy import deepcopy
---> 12 import pandas as pd
13 import numpy as np
14 from PIL import Image
File /usr/local/lib/python3.10/dist-packages/pandas/init.py:22
19 del _hard_dependencies, _dependency, _missing_dependencies
21 # numpy compat
---> 22 from pandas.compat import is_numpy_dev as _is_numpy_dev # pyright: ignore # noqa:F401
24 try:
25 from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
File /usr/local/lib/python3.10/dist-packages/pandas/compat/init.py:25
17 from pandas.compat._constants import (
18 IS64,
19 PY39,
(...)
22 PYPY,
23 )
24 import pandas.compat.compressors
---> 25 from pandas.compat.numpy import (
26 is_numpy_dev,
27 np_version_under1p21,
28 )
29 from pandas.compat.pyarrow import (
30 pa_version_under7p0,
31 pa_version_under8p0,
32 pa_version_under9p0,
33 pa_version_under11p0,
34 )
37 def set_function_name(f: F, name: str, cls) -> F:
File /usr/local/lib/python3.10/dist-packages/pandas/compat/numpy/init.py:4
1 """ support numpy compatibility across versions """
2 import numpy as np
----> 4 from pandas.util.version import Version
6 # numpy versioning
7 _np_version = np.version
File /usr/local/lib/python3.10/dist-packages/pandas/util/init.py:2
1 # pyright: reportUnusedImport = false
----> 2 from pandas.util._decorators import ( # noqa:F401
3 Appender,
4 Substitution,
5 cache_readonly,
6 )
8 from pandas.core.util.hashing import ( # noqa:F401
9 hash_array,
10 hash_pandas_object,
11 )
File /usr/local/lib/python3.10/dist-packages/pandas/util/_decorators.py:14
6 from typing import (
7 Any,
8 Callable,
9 Mapping,
10 cast,
11 )
12 import warnings
---> 14 from pandas._libs.properties import cache_readonly
15 from pandas._typing import (
16 F,
17 T,
18 )
19 from pandas.util._exceptions import find_stack_level
File /usr/local/lib/python3.10/dist-packages/pandas/_libs/init.py:13
1 all = [
2 "NaT",
3 "NaTType",
(...)
9 "Interval",
10 ]
---> 13 from pandas._libs.interval import Interval
14 from pandas._libs.tslibs import (
15 NaT,
16 NaTType,
(...)
21 iNaT,
22 )
File /usr/local/lib/python3.10/dist-packages/pandas/_libs/interval.pyx:1, in init pandas._libs.interval()
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
`
`---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[12], line 20
17 import torch
18 from torchvision import transforms
---> 20 from diffusers import (
21 AutoencoderKL,
22 DDPMScheduler,
23 UNet2DConditionModel,
24 UniPCMultistepScheduler,
25 )
26 from diffusionsat import (
27 SatUNet, ControlNetModel, ControlNetModel3D, DiffusionSatControlNetPipeline
28 )
30 from diffusionsat.data_util import (
31 texas_tokenize_caption, texas_numerical_metadata,
32 xbd_tokenize_caption, xbd_numerical_metadata,
33 combine_text_and_metadata, metadata_normalize, metadata_unnormalize,
34 )
File ~/DiffusionSat/DiffusionSat/src/diffusers/init.py:3
1 version = "0.17.0.dev0"
----> 3 from .configuration_utils import ConfigMixin
4 from .utils import (
5 OptionalDependencyNotAvailable,
6 is_flax_available,
(...)
19 logging,
20 )
23 try:
File ~/DiffusionSat/DiffusionSat/src/diffusers/configuration_utils.py:34
31 from requests import HTTPError
33 from . import version
---> 34 from .utils import (
35 DIFFUSERS_CACHE,
36 HUGGINGFACE_CO_RESOLVE_ENDPOINT,
37 DummyObject,
38 deprecate,
39 extract_commit_hash,
40 http_user_agent,
41 logging,
42 )
45 logger = logging.get_logger(name)
47 _re_configuration_file = re.compile(r"config.(.*).json")
File ~/DiffusionSat/DiffusionSat/src/diffusers/utils/init.py:38
36 from .deprecation_utils import deprecate
37 from .doc_utils import replace_example_docstring
---> 38 from .dynamic_modules_utils import get_class_from_dynamic_module
39 from .hub_utils import (
40 HF_HUB_OFFLINE,
41 _add_variant,
(...)
44 http_user_agent,
45 )
46 from .import_utils import (
47 BACKENDS_MAPPING,
48 ENV_VARS_TRUE_AND_AUTO_VALUES,
(...)
79 requires_backends,
80 )
File ~/DiffusionSat/DiffusionSat/src/diffusers/utils/dynamic_modules_utils.py:29
26 from typing import Dict, Optional, Union
27 from urllib import request
---> 29 from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
31 from .. import version
32 from . import DIFFUSERS_DYNAMIC_MODULE_NAME, HF_MODULES_CACHE, logging
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/home/miniconda3/envs/diffusionsat/lib/python3.10/site-packages/huggingface_hub/init.py)
`
Also, try to run a Google Colab and have a problem with the version of the diffuser that you use (0.17)
Best regards