Lightning-Universe / DiffusionWithAutoscaler

DiffusionWithAutoscaler
Apache License 2.0
28 stars 5 forks source link

consider stablediffusion (ldm) installation as hashbang #22

Open aniketmaurya opened 1 year ago

aniketmaurya commented 1 year ago

The App fails locally because of ldm package is not installed with the --setup flag.

I tried setting local_build_config but it had no effect.

Error:

  File "/Users/aniket/miniconda3/envs/am/lib/python3.9/site-packages/lightning/app/components/serve/python_server.py", line 312, in run
    self.setup(*args, **kwargs)
  File "/Users/aniket/Projects/github/DiffusionWithAutoscaler/app.py", line 27, in setup
    import ldm
ModuleNotFoundError: No module named 'ldm'

cc: @hhsecond @tchaton

justusschock commented 1 year ago

@aniketmaurya local_build_config is not supported until we have a proper docker runtime as per https://github.com/Lightning-AI/lightning/blob/master/src/lightning_app/core/work.py#L100