AUTOMATIC1111 / stable-diffusion-webui-tensorrt

MIT License
311 stars 20 forks source link

Not loading at all #12

Open kriimakt opened 1 year ago

kriimakt commented 1 year ago

I'm getting the following error : Error loading script: trt.py Traceback (most recent call last): File "D:\UNSTABLE2\stable-diffusion-webui\modules\scripts.py", line 263, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\UNSTABLE2\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\UNSTABLE2\stable-diffusion-webui\extensions\stable-diffusion-webui-tensorrt\scripts\trt.py", line 6, in from modules import script_callbacks, sd_unet, devices, shared, paths_internal ImportError: cannot import name 'sd_unet' from 'modules' (unknown location)

I followed the installation instructions but... The extension doesn't load :(

Adolfiux commented 1 year ago

Same here, I followed solution #7, but nothing changed.

TigerFox57 commented 1 year ago

Me too, as they say, although solution #7 fixed the majority of the errors I was getting, so it's just this ImportError thing that's the hold up.

UPDATE: Did git checkout dev and this got past the error, so now I'm waiting for the conversion to finish, assuming it actually does.

MxDeWitt commented 1 year ago

@TigerFox57, have the same issue, and I'm probably doing something wrong since git checkout dev gives me the following: error: pathspec 'dev' did not match any file(s) known to git Checking available branches yields this:

  master                5e5352c Merge pull request #4 from szhublox/linux-ld
  remotes/origin/HEAD   -> origin/master
  remotes/origin/master 5e5352c Merge pull request #4 from szhublox/linux-ld
TigerFox57 commented 1 year ago

@TigerFox57, have the same issue, and I'm probably doing something wrong since git checkout dev gives me the following: error: pathspec 'dev' did not match any file(s) known to git Checking available branches yields this:

  master                5e5352c Merge pull request #4 from szhublox/linux-ld
  remotes/origin/HEAD   -> origin/master
  remotes/origin/master 5e5352c Merge pull request #4 from szhublox/linux-ld

My knowledge of git is practically non existant I'm afraid, so I can't really shed any light on your problem. When I do

git branch --list

I get * dev master

I can however report that on my laptop with a mobile RTX 3080 Ti, generating 512 x 512 images goes from about 9 it/sec to about 15 it/sec. using 20 steps Euler_a. Not sure about image quality though, the console reported a lot of stuff during conversion that seemed to say that things could be tweaked a bit.

drphero commented 1 year ago

You have to run git checkout dev in the stable-diffusion-webui directory, but you might want to run git pull first.