advimman / lama

🦙 LaMa Image Inpainting, Resolution-robust Large Mask Inpainting with Fourier Convolutions, WACV 2022
https://advimman.github.io/lama-project/
Apache License 2.0
7.91k stars 838 forks source link

ckpt to pt model format #293

Open yumianhuli1 opened 8 months ago

yumianhuli1 commented 8 months ago

I use set PYTHONPATH=%cd% python bin\to_jit.py model.path=%cd%\big-lama +save_path=%cd%\big-lama\big-lama.jit in the root directory of lama under windows os in order to convert ckpt format to pt format,

but An error occurred: handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ValueError: invalid signal value

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

windj007 commented 8 months ago

Just comment this out

jiaxue-ai commented 6 months ago

I wrote a simple ckpt to pt model convertor, in case you need it

https://github.com/advimman/lama/issues/306