google / RB-Modulation

Official code for "RB-Modulation: Training-Free Personalization of Diffusion Models using Stochastic Optimal Control"
https://rb-modulation.github.io/
Apache License 2.0
336 stars 26 forks source link

No module named 'lightning.app' #7

Closed nitinmukesh closed 1 month ago

nitinmukesh commented 1 month ago

I installed all the dependencies and downloaded the models.

Getting this error

(C:\ai\RB-Modulation\rbm) C:\ai\RB-Modulation\lang-segment-anything>python app.py
Traceback (most recent call last):
  File "C:\ai\RB-Modulation\lang-segment-anything\app.py", line 7, in <module>
    from lightning.app.components.serve import ServeGradio
ModuleNotFoundError: No module named 'lightning.app'
(C:\ai\RB-Modulation\rbm) C:\ai\RB-Modulation\lang-segment-anything>pip list
Package                   Version        Editable project location
------------------------- -------------- -----------------------------------------
accelerate                0.34.2
addict                    2.4.0
aiofiles                  23.2.1
aiohappyeyeballs          2.4.2
aiohttp                   3.10.8
aiosignal                 1.3.1
albucore                  0.0.17
albumentations            1.4.16
altair                    5.4.1
annotated-types           0.7.0
anyio                     4.6.0
argon2-cffi               23.1.0
argon2-cffi-bindings      21.2.0
arrow                     1.3.0
asttokens                 2.4.1
async-lru                 2.0.4
async-timeout             4.0.3
attrs                     24.2.0
babel                     2.16.0
beautifulsoup4            4.12.3
bleach                    6.1.0
braceexpand               0.1.7
certifi                   2024.8.30
cffi                      1.17.1
charset-normalizer        3.3.2
click                     8.1.7
colorama                  0.4.6
coloredlogs               15.0.1
comm                      0.2.2
contourpy                 1.3.0
cycler                    0.12.1
Cython                    3.0.11
debugpy                   1.8.6
decorator                 5.1.1
defusedxml                0.7.1
docker-pycreds            0.4.0
easydict                  1.13
einops                    0.8.0
eval_type_backport        0.2.0
exceptiongroup            1.2.2
executing                 2.1.0
fastapi                   0.115.0
fastjsonschema            2.20.0
ffmpy                     0.4.0
filelock                  3.16.1
flatbuffers               24.3.25
fonttools                 4.54.1
fqdn                      1.5.1
frozenlist                1.4.1
fsspec                    2024.9.0
ftfy                      6.2.3
gitdb                     4.0.11
GitPython                 3.1.43
gradio                    3.50.2
gradio_client             0.6.1
groundingdino             0.1.0
h11                       0.14.0
httpcore                  1.0.5
httpx                     0.27.2
huggingface-hub           0.23.5
humanfriendly             10.0
idna                      3.10
imageio                   2.35.1
importlib_metadata        8.5.0
importlib_resources       6.4.5
insightface               0.7.3
ipykernel                 6.29.5
ipython                   8.18.1
ipywidgets                8.1.5
isoduration               20.11.0
jedi                      0.19.1
Jinja2                    3.1.4
joblib                    1.4.2
json5                     0.9.25
jsonpointer               3.0.0
jsonschema                4.23.0
jsonschema-specifications 2023.12.1
jupyter                   1.1.1
jupyter_client            8.6.3
jupyter-console           6.6.3
jupyter_core              5.7.2
jupyter-events            0.10.0
jupyter-lsp               2.2.5
jupyter_server            2.14.2
jupyter_server_terminals  0.5.3
jupyterlab                4.2.5
jupyterlab_pygments       0.3.0
jupyterlab_server         2.27.3
jupyterlab_widgets        3.0.13
kiwisolver                1.4.7
kornia                    0.7.3
kornia_rs                 0.1.5
lang-sam                  0.1.0          C:\ai\RB-Modulation\lang-segment-anything
lazy_loader               0.4
lightning                 2.4.0
lightning-utilities       0.11.7
MarkupSafe                2.1.5
matplotlib                3.9.2
matplotlib-inline         0.1.7
mistune                   3.0.2
mpmath                    1.3.0
multidict                 6.1.0
munch                     4.0.0
narwhals                  1.8.4
nbclient                  0.10.0
nbconvert                 7.16.4
nbformat                  5.10.4
nest-asyncio              1.6.0
networkx                  3.2.1
ninja                     1.11.1.1
notebook                  7.2.2
notebook_shim             0.2.4
numpy                     1.26.4
onnx                      1.16.2
onnx2torch                1.5.15
onnxruntime               1.19.2
opencv-python             4.10.0.84
opencv-python-headless    4.10.0.84
orjson                    3.10.7
overrides                 7.7.0
packaging                 24.1
pandas                    2.2.3
pandocfilters             1.5.1
parso                     0.8.4
Pillow                    9.4.0
pip                       24.2
platformdirs              4.3.6
prettytable               3.11.0
prometheus_client         0.21.0
prompt_toolkit            3.0.48
protobuf                  5.28.2
psutil                    6.0.0
pure_eval                 0.2.3
pycocotools               2.0.8
pycparser                 2.22
pydantic                  2.9.2
pydantic_core             2.23.4
pydub                     0.25.1
Pygments                  2.18.0
pyparsing                 3.1.4
pyreadline3               3.5.4
python-dateutil           2.9.0.post0
python-json-logger        2.0.7
python-multipart          0.0.12
pytorch-lightning         2.4.0
pytz                      2024.2
pywin32                   306
pywinpty                  2.0.13
PyYAML                    6.0.2
pyzmq                     26.2.0
referencing               0.35.1
regex                     2024.9.11
requests                  2.32.3
rfc3339-validator         0.1.4
rfc3986-validator         0.1.1
rpds-py                   0.20.0
safetensors               0.4.5
scikit-image              0.24.0
scikit-learn              1.5.2
scipy                     1.13.1
segment-anything          1.0
semantic-version          2.10.0
Send2Trash                1.8.3
sentry-sdk                2.14.0
setproctitle              1.3.3
setuptools                75.1.0
six                       1.16.0
smmap                     5.0.1
sniffio                   1.3.1
soupsieve                 2.6
stack-data                0.6.3
starlette                 0.38.6
supervision               0.22.0
sympy                     1.13.3
terminado                 0.18.1
threadpoolctl             3.5.0
tifffile                  2024.8.30
timm                      1.0.9
tinycss2                  1.3.0
tokenizers                0.20.0
tomli                     2.0.1
torch                     2.1.2+cu118
torchmetrics              1.4.2
torchtools                0.3.5
torchvision               0.16.2+cu118
tornado                   6.4.1
tqdm                      4.66.5
traitlets                 5.14.3
transformers              4.45.1
types-python-dateutil     2.9.0.20240906
typing_extensions         4.12.2
tzdata                    2024.2
uri-template              1.3.0
urllib3                   2.2.3
uvicorn                   0.31.0
wandb                     0.18.2
warmup_scheduler          0.3.2
wcwidth                   0.2.13
webcolors                 24.8.0
webdataset                0.2.100
webencodings              0.5.1
websocket-client          1.8.0
websockets                11.0.3
wheel                     0.44.0
widgetsnbextension        4.0.13
yapf                      0.40.2
yarl                      1.13.1
zipp                      3.20.2

Also tried installing python -m pip install pytorch-lightning

Still same issue

nitinmukesh commented 1 month ago

Sorry I was trying to launch from line-segment folder.