#rand_perlin_2d missing in fresh conda env {Linux]

50 messages · Page 1 of 1 (latest)

proud carbon
#

ImportError: cannot import name 'rand_perlin_2d' from 'ldm.util' (/home/madiator2011/stable-diffusion/ldm/util.py)
Have setup fresh conda enviroment and can't get it to work

safe hawk
#

this is happening on trying the final step (w/ invoke.py?)

proud carbon
#

Yup all installed without issue

safe hawk
#

wellllll i think there might have been issues

proud carbon
safe hawk
#

just didnt realize them 😉

#

try conda env update

proud carbon
#

still

#

let me delete ldm evn maybe it's making issues

safe hawk
#

doing that and recreating might help - yeah

proud carbon
#

or will test without conda

safe hawk
#

Typically when theres a failure to import, it means that it didn't get some dependency it needs during env creation

proud carbon
#

deleted env and testing again

#

and still that same

safe hawk
#

😠

proud carbon
#

ok some progress

#

ModuleNotFoundError: No module named 'ldm.models.diffusion.ksampler'

safe hawk
#

👀

proud carbon
#

sometimes I hate python

#

fixed it 😄

#

And some huge error

#

CUDA error: no kernel image is available for execution on the device

safe hawk
#

you have an NVidia?

proud carbon
#

Yup

safe hawk
#

something is going off on env being able to execute w/ it

proud carbon
safe hawk
#

i wonder about your pytorch versions

proud carbon
#

1.12.1+cu102 is on host

#

and in conda env

safe hawk
#

what card do you have?

proud carbon
#

RTX 3060 Ti

#

Cuda 11.7

safe hawk
#

im looking at forums

#

and it seems like its a (potential) compatibility issue between 3060ti and pytorch

#

https://discuss.pytorch.org/t/which-pytorch-cuda-version-to-use-with-newest-3060ti-driver/148579 example

proud carbon
#

Installing pytorch-1.12.1

#

Though I had working older Invoke version

safe hawk
#

hmm.

#

i dont think pytorch versions changed between versions

#

but could be wrong

proud carbon
#

im now at 1.12.1+cu102

safe hawk
#

which is the same v as before, aye?

proud carbon
#

yup

#

pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116

safe hawk
#

fixed it?

proud carbon
#

yup though need change port now

safe hawk
#

legend

proud carbon
#

cause is being used

#

is there a arguemnt for it?

safe hawk
#

for port?