AliaksandrSiarohin / first-order-model

This repository contains the source code for the paper First Order Motion Model for Image Animation
https://aliaksandrsiarohin.github.io/first-order-model-website/
MIT License
14.56k stars 3.22k forks source link

Cannot install correctly, What do i have to do? #585

Open Meawjin opened 1 year ago

Meawjin commented 1 year ago

I try to install your project many times with each versions of python (3.7, 3.8, 3.9) on (conda env, python venv and python) with pip install -r requirements.txt but it s still shown an error like this : (Please help me, What do i have to do to solve this problems ? thank u.. )

C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\first-order-model\demo.py:134: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use import imageio.v2 as imageio or call imageio.v2.imread directly. source_image = imageio.imread(opt.source_image) C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:2895.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] Traceback (most recent call last): File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\first-order-model\demo.py", line 147, in generator, kp_detector = load_checkpoints(config_path=opt.config, checkpoint_path=opt.checkpoint, cpu=opt.cpu) File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\first-order-model\demo.py", line 33, in load_checkpoints generator.cuda() File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\nn\modules\module.py", line 689, in cuda return self._apply(lambda t: t.cuda(device)) File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\nn\modules\module.py", line 579, in _apply module._apply(fn) File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\nn\modules\module.py", line 579, in _apply module._apply(fn) File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\nn\modules\module.py", line 579, in _apply module._apply(fn) [Previous line repeated 3 more times] File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\nn\modules\module.py", line 602, in _apply param_applied = fn(param) File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\nn\modules\module.py", line 689, in return self._apply(lambda t: t.cuda(device)) File "C:\Users\Idra1010\AppData\Local\Programs\Python\Python39\venv2\lib\site-packages\torch\cuda__init__.py", line 211, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled