swapping-autoencoder-pytorch icon indicating copy to clipboard operation
swapping-autoencoder-pytorch copied to clipboard

I can't start the "python -m experiments mountain_pretrained test simple_swapping"

Open Nero-Augustus opened this issue 4 years ago • 4 comments

Hello I want to try the code and get the errors:

C:\Users\Nero\AppData\Local\Programs\Python\Python36\lib\runpy.py:125: RuntimeWarning: 'experiments.main' found in sys.modules after import of package 'experiments', but prior to execution of 'experiments.main'; this may result in unpredictable behaviour warn(RuntimeWarning(msg)) Traceback (most recent call last): File "C:\Users\Nero\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:\Users\Nero\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "C:\Users\Nero\Desktop\autoencoder\swapping-autoencoder-pytorch-main\experiments_main.py", line 96, in gpu_id=opt.gpu_id) File "C:\Users\Nero\Desktop\autoencoder\swapping-autoencoder-pytorch-main\experiments\tmux_launcher.py", line 174, in run_command refined_command = self.refine_command(this_command, resume_iter, continue_train=continue_train, gpu_id=gpu_id) File "C:\Users\Nero\Desktop\autoencoder\swapping-autoencoder-pytorch-main\experiments\tmux_launcher.py", line 137, in refine_command raise ValueError("{} GPU(s) required for the command {} is not available".format(num_gpus, command)) ValueError: 1 GPU(s) required for the command python test.py --dataroot . --dataset_mode imagefolder --checkpoints_dir ./checkpoints/ --num_gpus 1 --batch_size 1 --preprocess scale_shortside --load_size 512 --crop_size 512 --name mountain_pretrained --lambda_patch_R1 10.0 --result_dir ./results/ --evaluation_metrics simple_swapping --input_structure_image ./testphotos/mountain/fig12/structure/AdobeStock_104191871.jpeg --input_texture_image ./testphotos/mountain/fig12/style/AdobeStock_312564332.jpeg --texture_mix_alpha 0.0 0.25 0.5 0.75 1.0 is not available

i install all required packages:

Package Version


certifi 2021.5.30 charset-normalizer 2.0.4 colorama 0.4.4 cycler 0.10.0 dataclasses 0.8 dominate 2.6.0 func-timeout 4.3.5 GPUtil 1.4.0 idna 3.2 importlib-metadata 4.6.3 joblib 1.0.1 jsonpatch 1.32 jsonpointer 2.1 kiwisolver 1.3.1 lmdb 1.2.1 matplotlib 3.3.4 ninja 1.10.2 numpy 1.19.5 opencv-python 4.5.3.56 Pillow 8.3.1 pip 21.2.2 plotter 1.3.19 pyparsing 2.4.7 python-dateutil 2.8.2 pyzmq 22.1.0 requests 2.26.0 scikit-learn 0.24.2 scipy 1.5.4 setuptools 40.6.2 six 1.16.0 threadpoolctl 2.2.0 tikzplotlib 0.9.9 torch 1.7.1+cu101 torchaudio 0.7.2 torchfile 0.1.0 torchgeometry 0.1.2 torchvision 0.8.2+cu101 tornado 6.1 tqdm 4.62.0 typing-extensions 3.10.0.0 urllib3 1.26.6 visdom 0.1.8.9 websocket-client 1.1.0 zipp 3.5.0

and cuda of course:

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Sun_Jul_28_19:12:52_Pacific_Daylight_Time_2019 Cuda compilation tools, release 10.1, V10.1.243

GTX 1050

Thank you for helping.

Nero-Augustus avatar Aug 04 '21 12:08 Nero-Augustus

Hi @Nero-Augustus , How did you achieve to solve that problem ?

EmreOzkose avatar Dec 02 '21 18:12 EmreOzkose

Hi @EmreOzkose . I didnt solve it. We have used another network for our problem.Sry.

Nero-Augustus avatar Dec 20 '21 20:12 Nero-Augustus

I have the same problem, have no ideal to solve it.

sunshinelike avatar Nov 07 '22 13:11 sunshinelike

Are you trying to run on windows, cause I'm getting the same problem... thanks

moonrabbitt avatar Jun 06 '23 15:06 moonrabbitt