GithubHelp home page GithubHelp logo

iperdance / ipercore Goto Github PK

View Code? Open in Web Editor NEW
2.4K 2.4K 317.0 23.02 MB

Liquid Warping GAN with Attention: A Unified Framework for Human Image Synthesis

Home Page: https://iperdance.github.io/work/impersonator-plus-plus.html

License: Apache License 2.0

Python 99.95% Shell 0.05%

ipercore's People

Contributors

piaozhx avatar snehitvaddi avatar stevenliuwen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipercore's Issues

License

Hi, can you please add a License file thanks

No Cuda Runtime Is Found

This Error Happened When I Was Using https://github.com/iPERDance/iPERCore/wiki/How-to-use-the-released-version-on-windows%3F
C:\Users\NGUYEN>E:

E:\motion_imitate>.\motion_imitate.exe --gpu_ids 0 --image_size 256 --num_source 2 No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1' usage: motion_imitate.exe [-h] [--gpu_ids GPU_IDS] [--image_size IMAGE_SIZE] [--num_source NUM_SOURCE] [--output_dir OUTPUT_DIR] [--assets_dir ASSETS_DIR] [--model_id MODEL_ID] [--src_path SRC_PATH] [--ref_path REF_PATH] motion_imitate.exe: error: unrecognized arguments:

E:\motion_imitate>--output_dir "./results" --assets_dir "./assets" `
'--output_dir' is not recognized as an internal or external command,
operable program or batch file.

E:\motion_imitate>--model_id "donald_trump_2" `
'--model_id' is not recognized as an internal or external command,
operable program or batch file.

E:\motion_imitate>--src_path "path?=./assets/samples/sources/wuy/Snapshot_18.png,name?=wuy" `
'--src_path' is not recognized as an internal or external command,
operable program or batch file.

E:\motion_imitate>--ref_path "path?=./assets/samples/references/19.mp4,name?=19,pose_fc?=300"

Could not find a version that satisfies the requirement mmcv-full==1.2.0+torch1.6.0+cu102

Hi, thank you for the amazing work.
I am trying to run this on a Windows 10 system.
When I entered:

python setup.py

It produces:

C:\Users\anaconda3\envs\iPER\python.exe -m pip install mmcv-full==1.2.0+torch1.6.0+cu102 -f https://download.openmmlab.com/mmcv/dist/index.html
Looking in links: https://download.openmmlab.com/mmcv/dist/index.html
ERROR: Could not find a version that satisfies the requirement mmcv-full==1.2.0+torch1.6.0+cu102 (from versions: 1.1.5+torch1.4.0+cpu, 1.1.5+torch1.5.1+cpu, 1.1.5+torch1.6.0+cpu, 1.1.5+torch1.6.0+cu101, 1.1.5+torch1.6.0+cu102, 1.0rc0, 1.0rc2, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.2.0, 1.2.1)
ERROR: No matching distribution found for mmcv-full==1.2.0+torch1.6.0+cu102

How can I fix this? Thank you

Run motion_imitate.py error

when I run a single image as the source inputs in windows, it cause the error. What caused this?

(venv) E:\DL_with_coding\pytorch\iPERCore>python demo/motion_imitate.py --gpu_ids 0 --image_size 512 --num_source 1 --output_dir "./results" --assets_dir "./assets" --model_id "donald_trump_2" --src_path "path?=/data/dev/projects/iPERCore/assets/samples/sources/donald_trump_2/00000.PNG,name?=donald_trump_2" --ref_path "path?=/data/dev/projects/iPERCore/assets/samples/references/akun_2.mp4,name?=akun_2,pose_fc?=300"
------------ Options -------------
{'MAX_NUM_SOURCE': 8,
'MultiMedia': {'ffmpeg': {'Linux': {'ffmpeg_exe_path': 'ffmpeg',
'ffprobe_exe_path': 'ffprobe'},
'Windows': {'ffmpeg_exe_path': './assets/executables/ffmpeg-4.3.1-win64-static/bin/ffmpeg.exe',
'ffprobe_exe_path': './assets/executables/ffmpeg-4.3.1-win64-static/bin/ffprobe.exe'},
'pix_fmt': 'yuv420p',
'vcodec': 'h264'},
'image': {'caption': 'this is a fake video, synthesized by '
'impersonator++',
'saved_name_format': 'pred_{:0>8}.png'}},
'NUMBER_FACES': 13776,
'NUMBER_VERTS': 6890,
'Preprocess': {'BackgroundInpaintor': {'bg_replace': True,
'cfg_path': './assets/configs/inpaintors/mmedit_inpainting.toml',
'dilate_iter_num': 3,
'dilate_kernel_size': 9,
'name': 'mmedit_inpainting',
'use_sr': True},
'Cropper': {'ref_crop_factor': 3.0, 'src_crop_factor': 1.3},
'Deformer': {'cloth_parse_ckpt_path': './assets/checkpoints/mattors/exp-schp-lip.pth'},
'FrontInfo': {'NUM_CANDIDATE': 25, 'RENDER_SIZE': 256},
'HumanMattors': {'cfg_path': './assets/configs/mattors/point_render+gca.toml',
'dilate_iter_num': 7,
'erode_iter_num': 2,
'morph_kernel_size': 3,
'name': 'point_render+gca'},
'MAX_PER_GPU_PROCESS': 1,
'Pose2dEstimator': {'cfg_path': './assets/configs/pose2d/openpose/body25.toml',
'joint_type': 'OpenPose-Body-25',
'name': 'openpose'},
'Pose3dEstimator': {'batch_size': 32,
'cfg_path': './assets/configs/pose3d/spin.toml',
'name': 'spin',
'num_workers': 4},
'Pose3dRefiner': {'cfg_path': './assets/configs/pose3d/smplify.toml',
'name': 'smplify',
'use_lfbgs': True},
'Tracker': {'tracker_name': 'max_box'},
'estimate_boxes_first': True,
'filter_invalid': True,
'has_detector': True,
'temporal': True,
'use_smplify': True},
'Train': {'D_adam_b1': 0.9,
'D_adam_b2': 0.999,
'G_adam_b1': 0.9,
'G_adam_b2': 0.999,
'aug_bg': False,
'display_freq_s': 30,
'face_factor': 1.0,
'face_loss_path': './assets/checkpoints/losses/sphere20a_20171020.pth',
'final_lr': 2e-06,
'lambda_D_prob': 1.0,
'lambda_face': 5.0,
'lambda_mask': 5.0,
'lambda_mask_smooth': 1.0,
'lambda_rec': 10.0,
'lambda_tsf': 10.0,
'lr_D': 0.0001,
'lr_G': 0.0001,
'niters_or_epochs_decay': 0,
'niters_or_epochs_no_decay': 100,
'num_iters_validate': 1,
'opti': 'Adam',
'print_freq_s': 30,
'save_latest_freq_s': 300,
'tb_visual': False,
'train_G_every_n_iterations': 1,
'use_face': True,
'use_vgg': 'VGG19',
'vgg_loss_path': './assets/checkpoints/losses/vgg19-dcbb9e9d.pth'},
'assets_dir': './assets',
'batch_size': 1,
'bg_ks': 11,
'cam_strategy': 'smooth',
'cfg_path': './assets\configs\deploy.toml',
'digital_type': 'cloth_smpl_link',
'dis_name': 'patch_global',
'face_path': './assets/checkpoints/pose3d/smpl_faces.npy',
'facial_path': './assets/checkpoints/pose3d/front_facial.json',
'fim_enc_path': './assets/checkpoints/pose3d/mapper_fim_enc.txt',
'front_path': './assets/checkpoints/pose3d/front_body.json',
'ft_ks': 1,
'gen_name': 'AttLWB-SPADE',
'gpu_ids': '0',
'head_path': './assets/checkpoints/pose3d/head.json',
'image_size': 512,
'intervals': 1,
'ip': '',
'load_epoch': -1,
'load_path_D': 'None',
'load_path_G': './assets/checkpoints/neural_renders/AttLWB-SPADE_id_G_2020-05-18.pth',
'local_rank': 0,
'map_name': 'uv_seg',
'meta_data': {'checkpoints_dir': './results\models\donald_trump_2',
'meta_ref': [<iPERCore.services.options.meta_info.MetaProcess object at 0x000001C0A4DE3EB8>],
'meta_src': [<iPERCore.services.options.meta_info.MetaProcess object at 0x000001C0A4DE3CC0>],
'opt_path': './results\models\donald_trump_2\opts.txt',
'personalized_ckpt_path': './results\models\donald_trump_2\personalized.pth',
'root_primitives_dir': './results\primitives'},
'model_id': 'donald_trump_2',
'neural_render_cfg': {'Discriminator': {'bg_cond_nc': 4,
'cond_nc': 6,
'max_nf_mult': 8,
'n_layers': 4,
'name': 'patch_global',
'ndf': 64,
'norm_type': 'instance',
'use_sigmoid': False},
'Generator': {'BGNet': {'cond_nc': 4,
'n_res_block': 6,
'norm_type': 'instance',
'num_filters': [64,
128,
128,
256]},
'SIDNet': {'cond_nc': 6,
'n_res_block': 6,
'norm_type': 'None',
'num_filters': [64, 128, 256]},
'TSFNet': {'cond_nc': 6,
'n_res_block': 6,
'norm_type': 'instance',
'num_filters': [64, 128, 256]},
'name': 'AttLWB-SPADE'}},
'neural_render_cfg_path': './assets/configs/neural_renders/AttLWB-SPADE.toml',
'num_source': 1,
'num_workers': 4,
'only_vis': False,
'output_dir': './results',
'part_path': './assets/checkpoints/pose3d/smpl_part_info.json',
'port': 0,
'ref_path': 'path?=/data/dev/projects/iPERCore/assets/samples/references/akun_2.mp4,name?=akun_2,pose_fc?=300',
'serial_batches': False,
'share_bg': True,
'smpl_model': './assets/checkpoints/pose3d/smpl_model.pkl',
'smpl_model_hand': './assets/checkpoints/pose3d/smpl_model_with_hand_v2.pkl',
'src_path': 'path?=/data/dev/projects/iPERCore/assets/samples/sources/donald_trump_2/00000.PNG,name?=donald_trump_2',
'tb_visual': False,
'temporal': False,
'tex_size': 3,
'time_step': 1,
'train_name': 'LWGTrainer',
'use_cudnn': False,
'use_inpaintor': False,
'uv_map_path': './assets/checkpoints/pose3d/mapper_uv.txt',
'verbose': True}
-------------- End ----------------
Pre-processing: start...
----------------------MetaProcess----------------------
meta_input:
path: /data/dev/projects/iPERCore/assets/samples/sources/donald_trump_2/00000.PNG
bg_path:
name: donald_trump_2
primitives_dir: ./results\primitives\donald_trump_2
processed_dir: ./results\primitives\donald_trump_2\processed
vid_info_path: ./results\primitives\donald_trump_2\processed\vid_info.pkl

----------------------MetaProcess----------------------
meta_input:
path: /data/dev/projects/iPERCore/assets/samples/references/akun_2.mp4
bg_path:
name: akun_2
audio:
fps: 25
pose_fc: 300.0
cam_fc: 100
primitives_dir: ./results\primitives\akun_2
processed_dir: ./results\primitives\akun_2\processed
vid_info_path: ./results\primitives\akun_2\processed\vid_info.pkl

Process PreprocessConsumer_0:
Traceback (most recent call last):
File "E:\Anaconda\envs\venv\lib\multiprocessing\process.py", line 258, in bootstrap
self.run()
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\services\preprocess.py", line 41, in run
device=device
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\tools\processors\preprocessors.py", line 125, in init
device=device
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\tools\human_mattors_init
.py", line 11, in build_mattor
from .point_render_parser import PointRenderGCAMattor
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\tools\human_mattors\point_render_parser.py", line 16, in
from mmdet.apis import init_detector, inference_detector
File "E:\Anaconda\envs\venv\lib\site-packages\mmdet\apis_init_.py", line 1, in
from .inference import (async_inference_detector, inference_detector,
File "E:\Anaconda\envs\venv\lib\site-packages\mmdet\apis\inference.py", line 7, in
from mmcv.ops import RoIPool
File "E:\Anaconda\envs\venv\lib\site-packages\mmcv\ops_init_.py", line 1, in
from .bbox import bbox_overlaps
File "E:\Anaconda\envs\venv\lib\site-packages\mmcv\ops\bbox.py", line 3, in
ext_module = ext_loader.load_ext('ext', ['bbox_overlaps'])
File "E:\Anaconda\envs\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 11, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "E:\Anaconda\envs\venv\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: 找不到指定的程序。
Pre-processing: digital deformation start...
Process HumanDigitalDeformConsumer_0:
Traceback (most recent call last):
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\services\preprocess.py", line 136, in run
prepared_inputs = self.prepare_inputs_for_run_cloth_smpl_links(process_info)
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\services\preprocess.py", line 210, in prepare_inputs_for_run_cloth_smpl_links
src_infos = process_info.convert_to_src_info(self.opt.num_source)
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\services\options\process_info.py", line 140, in convert_to_src_info
src_infos = read_src_infos(self.vid_infos, num_source)
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\services\options\process_info.py", line 233, in read_src_infos
pad_ids = np.random.choice(src_ids, need_pad)
File "mtrand.pyx", line 908, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\Anaconda\envs\venv\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "e:\dl_with_coding\pytorch\ipercore\iPERCore\services\preprocess.py", line 153, in run
except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 1.
Pre-processing: failed...

dockerfile

can you please add a dockerfile thanks

Faild to run when using a folder of image for a person

1.1 Preprocessing, running Preprocessor to detect the human boxes of ./results/primitives/processed/orig_images...
  0% 0/5 [00:00<?, ?it/s]
Process PreprocessConsumer_0:
Traceback (most recent call last):
  File "/content/iPERCore/iPERCore/services/preprocess.py", line 77, in run
    visual=True,
  File "/content/iPERCore/iPERCore/tools/processors/base_preprocessor.py", line 81, in execute
    self._execute_detector(processed_info, factor=factor)
  File "/content/iPERCore/iPERCore/tools/processors/base_preprocessor.py", line 298, in _execute_detector
    cur_shape = image.shape[0:2]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/content/iPERCore/iPERCore/services/preprocess.py", line 80, in run
    except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
		Pre-processing: digital deformation start...
Process HumanDigitalDeformConsumer_0:
Traceback (most recent call last):
  File "/content/iPERCore/iPERCore/services/preprocess.py", line 136, in run
    prepared_inputs = self.prepare_inputs_for_run_cloth_smpl_links(process_info)
  File "/content/iPERCore/iPERCore/services/preprocess.py", line 210, in prepare_inputs_for_run_cloth_smpl_links
    src_infos = process_info.convert_to_src_info(self.opt.num_source)
  File "/content/iPERCore/iPERCore/services/options/process_info.py", line 140, in convert_to_src_info
    src_infos = read_src_infos(self.vid_infos, num_source)
  File "/content/iPERCore/iPERCore/services/options/process_info.py", line 233, in read_src_infos
    pad_ids = np.random.choice(src_ids, need_pad)
  File "mtrand.pyx", line 908, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/content/iPERCore/iPERCore/services/preprocess.py", line 153, in run
    except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
		Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 2. 
	Pre-processing: failed...

install neural_renderer with errors

ERROR: Command errored out with exit status 1:
command: 'A:\Anaconda\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ADMINI1\AppData\Local\Temp\pip-req-build-q
x53uapn\setup.py'"'"'; file='"'"'C:\Users\ADMINI
1\AppData\Local\Temp\pip-req-build-qx53uapn\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',
open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\User
s\ADMINI1\AppData\Local\Temp\pip-pip-egg-info-eb472ome'
cwd: C:\Users\ADMINI
1\AppData\Local\Temp\pip-req-build-qx53uapn
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-qx53uapn\setup.py", line 4, in
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
ModuleNotFoundError: No module named 'torch.utils'

Getting error while running on custom image.

Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/content/iPERCore/iPERCore/services/preprocess.py", line 153, in run
    except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
		Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 2. 
	Pre-processing: failed...

Whats could be the reason for this error and How can this be resolved?

Reference or source? AttributeError: 'NoneType' object has no attribute 'shape'

Does following error mean that the "main actor" can't be located in the reference video?

-------------------------------------------------------
	1.1 Preprocessing, running Preprocessor to detect the human boxes of ./results/primitives/mom/processed/orig_images...
100% 2/2 [00:00<00:00,  3.69it/s]
	1.1 Preprocessing, finish detect the human boxes of ./results/primitives/mom/processed/orig_images ...
	1.2 Preprocessing, cropping all images in ./results/primitives/mom/processed/orig_images by estimated boxes ...
2it [00:00,  5.47it/s]
Process PreprocessConsumer_0:
Traceback (most recent call last):
  File "/content/iPERCore/iPERCore/services/preprocess.py", line 77, in run
    visual=True,
  File "/content/iPERCore/iPERCore/tools/processors/base_preprocessor.py", line 88, in execute
    self._execute_crop_img(processed_info, crop_size, bg_path, num_workers=num_workers)
  File "/content/iPERCore/iPERCore/tools/processors/base_preprocessor.py", line 229, in _execute_crop_img
    crop_info = process_utils.process_crop_img(bg_img, fmt_active_boxes, crop_size)
  File "/content/iPERCore/iPERCore/tools/processors/process_utils.py", line 209, in process_crop_img
    x0, y0, x1, y1 = get_approximate_square_crop_boxes(orig_img.shape[0:2], active_bbox)
AttributeError: 'NoneType' object has no attribute 'shape'

In this video, sometimes there's more than one dancer to be seen. Is this confusing the algorithm?
I have another video with more than one dancer to be seen and it worked.

iPERCore在python3.7 能运行吗?

你好,我运行demo/motion_imitate.py报错,请帮忙看看是什么原因。
打印front_info, {'ft': {'body_num': [], 'face_num': [], 'ids': []}, 'bk': {'body_num': [], 'face_num': [], 'ids': []}}
是不是视频帧没拆出来引起?
Process PreprocessConsumer_0:
Traceback (most recent call last):
File "/usr/bin/anaconda3/envs/iPERCore/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/home/jock/iPERCore/iPERCore/services/preprocess.py", line 41, in run
device=device
File "/home/jock/iPERCore/iPERCore/tools/processors/preprocessors.py", line 125, in init
device=device
File "/home/jock/iPERCore/iPERCore/tools/human_mattors/init.py", line 11, in build_mattor
from .point_render_parser import PointRenderGCAMattor
File "/home/jock/iPERCore/iPERCore/tools/human_mattors/point_render_parser.py", line 16, in
from mmdet.apis import init_detector, inference_detector
File "/home/jock/iPERCore/mmdetection/mmdet/apis/init.py", line 1, in
from .inference import (async_inference_detector, inference_detector,
File "/home/jock/iPERCore/mmdetection/mmdet/apis/inference.py", line 11, in
from mmdet.core import get_classes
File "/home/jock/iPERCore/mmdetection/mmdet/core/init.py", line 3, in
from .evaluation import * # noqa: F401, F403
File "/home/jock/iPERCore/mmdetection/mmdet/core/evaluation/init.py", line 5, in
from .mean_ap import average_precision, eval_map, print_map_summary
File "/home/jock/iPERCore/mmdetection/mmdet/core/evaluation/mean_ap.py", line 6, in
from terminaltables import AsciiTable
File "", line 983, in _find_and_load
File "", line 963, in _find_and_load_unlocked
File "", line 906, in _find_spec
File "", line 1280, in find_spec
File "", line 1254, in _get_spec
File "", line 1235, in _legacy_get_spec
File "", line 441, in spec_from_loader
File "", line 594, in spec_from_file_location
zlib.error: Error -2 while decompressing data: inconsistent stream state
Pre-processing: digital deformation start...
Process HumanDigitalDeformConsumer_0:
Traceback (most recent call last):
File "/home/jock/iPERCore/iPERCore/services/preprocess.py", line 136, in run
prepared_inputs = self.prepare_inputs_for_run_cloth_smpl_links(process_info)
File "/home/jock/iPERCore/iPERCore/services/preprocess.py", line 210, in prepare_inputs_for_run_cloth_smpl_links
src_infos = process_info.convert_to_src_info(self.opt.num_source)
File "/home/jock/iPERCore/iPERCore/services/options/process_info.py", line 140, in convert_to_src_info
src_infos = read_src_infos(self.vid_infos, num_source)
File "/home/jock/iPERCore/iPERCore/services/options/process_info.py", line 233, in read_src_infos
pad_ids = np.random.choice(src_ids, need_pad)
File "mtrand.pyx", line 908, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/anaconda3/envs/iPERCore/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/home/jock/iPERCore/iPERCore/services/preprocess.py", line 153, in run
except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 1.

neuro_renderer install error

I use command pip install -e . install, but neuro_renderer install error,What caused this?
image
My configuration environment is as follows:
image

请问下neural_render安装环境必须要gcc>=7.5.0吗?

我在一台gcc7.5.0机器上可以成功安装并且跑起来,但是在另一台机器上,由于某种原因只有gcc7.3.1,在安装neural_render的时候就会报错“error: command '/usr/local/cuda-10.1/bin/nvcc' failed with exit status 1”.

请问下除了升级gcc,还有其他解决途径吗?

Improve the detection effect of part of human body

When I used the dance video by Ricardo Milos and the image about Trump for training, at least half of the frames reminded me that I could not detect person. Is it possible to further improve the body mesh recovery module and add human body feature as input of transformation flow T?
Or is there any way to optimize my output for this dance?

install neural_renderer with errors?

My environment: win10, cuda10.1.243,python3.6 torch1.7+cu101

I have tried several times to run the command but I met the same error.
Hope your advice!
Thanks in advance~

Installing collected packages: neural-renderer
Running setup.py install for neural-renderer: started
WARNING: Subprocess output does not appear to be encoded as cp936
ERROR: Command errored out with exit status 1:
command: 'A:\Anaconda\envs\IPERcore-main\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ADMINI1\AppData\Local\Temp\pip-req-build-28qo0lx2\setup.py'"'"'; file='"'"'C:\Users\ADMINI1\AppData\Local\Temp\pip-req-build-28qo0lx2\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ADMINI1\AppData\Local\Temp\pip-record-ttsl6mcw\install-record.txt' --single-version-externally-managed --compile --install-headers 'A:\Anaconda\envs\IPERcore-main\Include\neural-renderer'
cwd: C:\Users\ADMINI
1\AppData\Local\Temp\pip-req-build-28qo0lx2
Complete output (307 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\get_points_from_angles.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\lighting.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\load_obj.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\look.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\look_at.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\mesh.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\perspective.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\projection.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\rasterize.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\rasterize_test.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\renderer.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\save_obj.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer\vertices_to_faces.py -> build\lib.win-amd64-3.6\neural_renderer
copying neural_renderer_init_.py -> build\lib.win-amd64-3.6\neural_renderer
creating build\lib.win-amd64-3.6\neural_renderer\cuda
copying neural_renderer\cuda\create_texture_image.py -> build\lib.win-amd64-3.6\neural_renderer\cuda
copying neural_renderer\cuda\load_textures.py -> build\lib.win-amd64-3.6\neural_renderer\cuda
copying neural_renderer\cuda\rasterize.py -> build\lib.win-amd64-3.6\neural_renderer\cuda
copying neural_renderer\cuda_init_.py -> build\lib.win-amd64-3.6\neural_renderer\cuda
running build_ext
Running setup.py install for neural-renderer: finished with status 'error'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\utils\cpp_extension.py:339: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\utils\cpp_extension.py:274: UserWarning: Error checking compiler version for cl: [WinError 2] 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆\x82
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'neural_renderer.cuda.load_textures' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\neural_renderer
creating build\temp.win-amd64-3.6\Release\neural_renderer\cuda
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IA:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include -IA:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\torch\csrc\api\include -IA:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\TH -IA:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\THC -IA:\CUDA\cuda10.1.243\include -IA:\Anaconda\envs\IPERcore-main\include -IA:\Anaconda\envs\IPERcore-main\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IB:\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tpneural_renderer/cuda/load_textures_cuda.cpp /Fobuild\temp.win-amd64-3.6\Release\neural_renderer/cuda/load_textures_cuda.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0
cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
load_textures_cuda.cpp
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3249: illegal statement or sub-expression for 'constexpr' function
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): note: see usage of '++'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: 'k': declaration is not allowed in 'constexpr' function body
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(60): error C3249: illegal statement or sub-expression for 'constexpr' function
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(60): note: see usage of '|='
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(66): warning C4800: 'uint64_t': forcing value to bool 'true' or 'false' (performance warning)
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(156): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(277): note: see reference to class template instantiation 'c10::complex' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(57): note: see reference to class template instantiation 'std::initializer_listc10::DispatchKey' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(161): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(166): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(172): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(178): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(185): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(192): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(199): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(211): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(229): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(237): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(270): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(276): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(156): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(281): note: see reference to class template instantiation 'c10::complex' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(161): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(166): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(172): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(178): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(185): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(192): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(199): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(211): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(229): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(237): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(270): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(276): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(156): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(285): note: see reference to class template instantiation 'c10::complex' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(161): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(166): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(172): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(178): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(185): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(192): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(199): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(211): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(229): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(237): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(270): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/complex.h(276): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(515): note: see reference to class template instantiation 'c10::optional' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optional::operator ->': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(474): warning C4814: 'c10::optional::operator *': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(479): warning C4814: 'c10::optional::operator *': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(491): warning C4814: 'c10::optional::value': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(497): warning C4814: 'c10::optional::value': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(509): warning C4814: 'c10::optional::value_or': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(93): warning C4814: 'c10::reverse_iterator<_Iterator>::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(177): note: see reference to class template instantiation 'c10::reverse_iterator<_Iterator>' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(126): warning C4814: 'c10::reverse_iterator<_Iterator>::operator ++': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(132): warning C4814: 'c10::reverse_iterator<_Iterator>::operator ++': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(137): warning C4814: 'c10::reverse_iterator<_Iterator>::operator --': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(143): warning C4814: 'c10::reverse_iterator<_Iterator>::operator --': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(152): warning C4814: 'c10::reverse_iterator<_Iterator>::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/reverse_iterator.h(161): warning C4814: 'c10::reverse_iterator<_Iterator>::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(59): warning C4814: 'c10::basic_string_view::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(643): note: see reference to class template instantiation 'c10::basic_string_view' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(159): warning C4814: 'c10::basic_string_view::remove_prefix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(168): warning C4814: 'c10::basic_string_view::remove_suffix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(174): warning C4814: 'c10::basic_string_view::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3250: 'i': declaration is not allowed in 'constexpr' function body
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3249: illegal statement or sub-expression for 'constexpr' function
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): note: see usage of '++'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(104): error C3249: illegal statement or sub-expression for 'constexpr' function
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(105): error C3249: illegal statement or sub-expression for 'constexpr' function
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(59): warning C4814: 'c10::basic_string_view::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(123): note: see reference to class template instantiation 'c10::basic_string_view' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(159): warning C4814: 'c10::basic_string_view::remove_prefix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(168): warning C4814: 'c10::basic_string_view::remove_suffix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/string_view.h(174): warning C4814: 'c10::basic_string_view::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optionalc10::ScalarType::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(182): note: see reference to class template instantiation 'c10::optionalc10::ScalarType' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2556: 'c10::ScalarType &c10::optionalc10::ScalarType::contained_val(void) const &': overloaded function differs only by return type from 'const c10::ScalarType &c10::optionalc10::ScalarType::contained_val(void) const &'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::ScalarType::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2373: 'c10::optionalc10::ScalarType::contained_val': redefinition; different type modifiers
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::ScalarType::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(284): error C2059: syntax error: 'return'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(284): error C2238: unexpected token(s) preceding ';'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(287): error C2144: syntax error: 'void' should be preceded by ';'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(187): error C2440: 'return': cannot convert from 'initializer list' to 'c10::optionalc10::ScalarType'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(187): note: No constructor could take the source type, or constructor overload resolution was ambiguous
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(190): error C2440: 'return': cannot convert from 'initializer list' to 'c10::optionalc10::ScalarType'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(190): note: No constructor could take the source type, or constructor overload resolution was ambiguous
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(192): error C2440: 'return': cannot convert from 'const c10::nullopt_t' to 'c10::optionalc10::ScalarType'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(192): note: No constructor could take the source type, or constructor overload resolution was ambiguous
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(196): error C2451: conditional expression of type 'c10::optionalc10::ScalarType' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(196): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(197): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optionalcaffe2::TypeMeta::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(203): note: see reference to class template instantiation 'c10::optionalcaffe2::TypeMeta' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2556: 'caffe2::TypeMeta &c10::optionalcaffe2::TypeMeta::contained_val(void) const &': overloaded function differs only by return type from 'const caffe2::TypeMeta &c10::optionalcaffe2::TypeMeta::contained_val(void) const &'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalcaffe2::TypeMeta::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2373: 'c10::optionalcaffe2::TypeMeta::contained_val': redefinition; different type modifiers
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalcaffe2::TypeMeta::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(204): error C2039: 'has_value': is not a member of 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(203): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(205): error C2440: 'return': cannot convert from 'const c10::nullopt_t' to 'c10::optionalc10::ScalarType'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(205): note: No constructor could take the source type, or constructor overload resolution was ambiguous
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(207): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(211): error C2451: conditional expression of type 'c10::optionalc10::ScalarType' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(211): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(212): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(212): error C2440: 'type cast': cannot convert from 'c10::ScalarType' to 'int'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(212): note: This conversion requires an explicit cast (static_cast, C-style cast or function-style cast)
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(212): error C2446: '==': no conversion from 'c10::ScalarType' to 'c10::optionalc10::ScalarType'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(212): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/Scalar.h(63): warning C4800: 'const int64_t': forcing value to bool 'true' or 'false' (performance warning)
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(24): error C2039: 'has_value': is not a member of 'c10::optionalc10::ScalarType'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(181): note: see declaration of 'c10::optionalc10::ScalarType'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(24): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(28): error C2039: 'has_value': is not a member of 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/ScalarType.h(203): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(28): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optionalc10::Layout::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(31): note: see reference to class template instantiation 'c10::optionalc10::Layout' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2556: 'c10::Layout &c10::optionalc10::Layout::contained_val(void) const &': overloaded function differs only by return type from 'const c10::Layout &c10::optionalc10::Layout::contained_val(void) const &'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::Layout::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2373: 'c10::optionalc10::Layout::contained_val': redefinition; different type modifiers
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::Layout::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(32): error C2039: 'has_value': is not a member of 'c10::optionalc10::Layout'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Layout'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(32): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optionalc10::Device::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(35): note: see reference to class template instantiation 'c10::optionalc10::Device' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2556: 'c10::Device &c10::optionalc10::Device::contained_val(void) const &': overloaded function differs only by return type from 'const c10::Device &c10::optionalc10::Device::contained_val(void) const &'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::Device::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2373: 'c10::optionalc10::Device::contained_val': redefinition; different type modifiers
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::Device::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(36): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(36): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(39): note: see reference to class template instantiation 'c10::optional' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2556: 'bool &c10::optional::contained_val(void) const &': overloaded function differs only by return type from 'const bool &c10::optional::contained_val(void) const &'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optional::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2373: 'c10::optional::contained_val': redefinition; different type modifiers
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optional::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(40): error C2039: 'has_value': is not a member of 'c10::optional'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(39): note: see declaration of 'c10::optional'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(40): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(138): error C2664: 'void c10::TensorOptions::set_layout(c10::optionalc10::Layout) noexcept &': cannot convert argument 1 from 'c10::Layout' to 'c10::optionalc10::Layout'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(138): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(164): error C2664: 'void c10::TensorOptions::set_dtype(c10::optionalc10::ScalarType) noexcept &': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(164): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(169): error C2664: 'void c10::TensorOptions::set_dtype(c10::optionalc10::ScalarType) noexcept &': cannot convert argument 1 from 'c10::ScalarType' to 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(169): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optionalc10::MemoryFormat::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(174): note: see reference to class template instantiation 'c10::optionalc10::MemoryFormat' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2556: 'c10::MemoryFormat &c10::optionalc10::MemoryFormat::contained_val(void) const &': overloaded function differs only by return type from 'const c10::MemoryFormat &c10::optionalc10::MemoryFormat::contained_val(void) const &'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::MemoryFormat::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2373: 'c10::optionalc10::MemoryFormat::contained_val': redefinition; different type modifiers
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalc10::MemoryFormat::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(174): error C2664: 'void c10::TensorOptions::set_memory_format(c10::optionalc10::MemoryFormat) noexcept &': cannot convert argument 1 from 'c10::MemoryFormat' to 'c10::optionalc10::MemoryFormat'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(174): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(265): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(265): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(286): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(286): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(302): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::Layout'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(302): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(319): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optional'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(319): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(345): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optional'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(345): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(359): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::MemoryFormat'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(359): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(415): error C2451: conditional expression of type 'c10::optionalc10::Device' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(415): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(416): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(425): error C2451: conditional expression of type 'c10::optionalcaffe2::TypeMeta' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(425): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(426): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(435): error C2451: conditional expression of type 'c10::optionalc10::ScalarType' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(435): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(436): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(445): error C2451: conditional expression of type 'c10::optionalc10::Layout' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(445): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(446): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(446): error C2440: '=': cannot convert from 'c10::optionalc10::Layout' to 'c10::Layout'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(446): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(455): error C2451: conditional expression of type 'c10::optional' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(455): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(456): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(456): error C2440: '=': cannot convert from 'c10::optional' to 'bool'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(456): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(465): error C2451: conditional expression of type 'c10::optional' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(465): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(466): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(466): error C2440: '=': cannot convert from 'c10::optional' to 'bool'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(466): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(475): error C2451: conditional expression of type 'c10::optionalc10::MemoryFormat' is illegal
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(475): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(476): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(476): error C2440: '=': cannot convert from 'c10::optionalc10::MemoryFormat' to 'c10::MemoryFormat'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(476): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(524): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(524): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(529): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(529): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(535): error C2664: 'c10::Layout c10::TensorOptions::layout(void) noexcept const': cannot convert argument 1 from 'c10::Layout' to 'c10::optionalc10::Layout'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(535): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(553): error C2664: 'bool c10::TensorOptions::requires_grad(void) noexcept const': cannot convert argument 1 from 'bool' to 'c10::optional'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(553): note: No constructor could take the source type, or constructor overload resolution was ambiguous
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(559): error C2664: 'c10::TensorOptions c10::TensorOptions::memory_format(c10::optionalc10::MemoryFormat) noexcept const': cannot convert argument 1 from 'c10::MemoryFormat' to 'c10::optionalc10::MemoryFormat'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(559): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(481): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(485): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(485): error C2039: 'index': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(489): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(493): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1000): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1002): error C2100: illegal indirection
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1002): error C2039: 'type': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1247): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1247): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1258): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1258): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1318): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1318): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1363): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(285): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorImpl.h(1363): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(95): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(95): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(96): error C2228: left of '.device' must have class/struct/union
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(97): error C2228: left of '.layout' must have class/struct/union
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(103): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(106): error C2039: 'value': is not a member of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/TensorOptions.h(21): note: see declaration of 'c10::optionalc10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(106): error C2512: 'c10::Device': no appropriate default constructor available
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/core/Device.h(30): note: see declaration of 'c10::Device'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: 'at::Tensor': multiple assignment operators specified
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/TensorBody.h(561): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/TensorBody.h(561): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(282): warning C4814: 'c10::optionalat::Tensor::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\ATen/core/TensorBody.h(561): note: see reference to class template instantiation 'c10::optionalat::Tensor' being compiled
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2556: 'at::Tensor &c10::optionalat::Tensor::contained_val(void) const &': overloaded function differs only by return type from 'const at::Tensor &c10::optionalat::Tensor::contained_val(void) const &'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalat::Tensor::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): error C2373: 'c10::optionalat::Tensor::contained_val': redefinition; different type modifiers
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(277): note: see declaration of 'c10::optionalat::Tensor::contained_val'
A:\Anaconda\envs\IPERcore-main\lib\site-packages\torch\include\c10/util/Optional.h(283): fatal error C1003: error count exceeds 100; stopping compilation
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'A:\Anaconda\envs\IPERcore-main\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ADMINI1\AppData\Local\Temp\pip-req-build-28qo0lx2\setup.py'"'"'; file='"'"'C:\Users\ADMINI1\AppData\Local\Temp\pip-req-build-28qo0lx2\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-ttsl6mcw\install-record.txt' --single-version-externally-managed --compile --install-headers 'A:\Anaconda\envs\IPERcore-main\Include\neural-renderer' Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available.
You should consider upgrading via the 'A:\Anaconda\envs\IPERcore-main\python.exe -m pip install --upgrade pip' command.
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied

ModuleNotFoundError: No module named 'neural_renderer'

D:\Candhome\计算机视觉学习迁移\iPERCore-main>python demo/motion_imitate.py --gpu_ids 0 --image_size 512 --num_source 2 --output_dir "./results" --assets_dir "./assets" --model_id "donald_trump_2" --src_path "path?=./assets/samples/sources/donald_trump_2/00000.PNG,name?=donald_trump_2" --ref_path "path?=./assets/samples/references/akun_2.mp4,name?=akun_2,pose_fc?=300"
Traceback (most recent call last):
File "demo/motion_imitate.py", line 10, in
from iPERCore.services.run_imitator import run_imitator
File "d:\candhome\计算机视觉学习迁移\ipercore-main\iPERCore\services\run_imitator.py", line 4, in
from iPERCore.models import ModelsFactory
File "d:\candhome\计算机视觉学习迁移\ipercore-main\iPERCore\models_init_.py", line 2, in
from .flowcomposition import FlowComposition
File "d:\candhome\计算机视觉学习迁移\ipercore-main\iPERCore\models\flowcomposition.py", line 7, in
from iPERCore.tools.human_digitalizer.renders import SMPLRenderer
File "d:\candhome\计算机视觉学习迁移\ipercore-main\iPERCore\tools\human_digitalizer\renders_init_.py", line 1, in
from .nmr import SMPLRenderer
File "d:\candhome\计算机视觉学习迁移\ipercore-main\iPERCore\tools\human_digitalizer\renders\nmr.py", line 6, in
import neural_renderer as nr
ModuleNotFoundError: No module named 'neural_renderer'

Question about Personalization

In the paper you mentioned that the pretrained generator and discriminator are finetuned by source images in the personalization phase.

Specifically, we first train our model, including a generator
and a discriminator, on a combined large dataset, and consequently
obtain the generator’s pre-trained parameters, ThetaMG , and the discriminator’s pre-trained parameters, ThetaMD .

However, in the code I found that no pretrain model for the discriminator is provided and loaded when doing personalization, as in deploy.toml where:

load_path_D = "None"

My question is does this negatively impact performance or does this actually help the generalizer fit source data better?

There are something wrong when I replace trump's image to mine in clolab notebook

# src_path = "\"path?=/content/iPERCore/assets/samples/sources/donald_trump_2/00000.PNG,name?=donald_trump_2\""
src_path = "\"path?=images/nzh_01.PNG,name?=nzh_01\""

Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/content/iPERCore/iPERCore/services/preprocess.py", line 153, in run
except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 2.
Pre-processing: failed...

蔡徐坤这个有点吊!

我正喝咖啡呢,当时就喷出来了!

手部模型还略显僵硬,人物骨骼追踪还不是很细腻,其他都还好了,再优化优化吧!

Does it only work with real photos?

Hello,

Thanks a lot for your amazing work.

I'm trying to use this tool to animate 3D characters, dolls and characters created with Photoshop but without success.
I always have this kind of result.
vlcsnap-2020-12-21-13h46m11s144
vlcsnap-2020-12-21-13h46m52s029

In /results/primitives/modelName/processed/parse, the masks are however correctly extracted
alpha

Am I doing something wrong or is the model only trained for real humans?
I don't have any issues with photos of actual people.

My command looks like this:

python demo/motion_imitate.py --gpu_ids 0 --image_size 512 --num_source 2 --output_dir "./results" --assets_dir "./assets" --model_id "bjd" --src_path "path?=./assets/samples/sources/bjd/bjd.jpg,name?=bjd" --ref_path "path?=./assets/samples/references/akun.mp4,name?=akun,pose_fc?=300"

ImportError: DLL load failed: The specified procedure could not be found

I tried to run the demo:

(venv) PS E:\bin\iPERCore-main> python demo/motion_imitate.py --gpu_ids 0 --image_size 512 --num_source 2 --output_dir "./results" --assets_dir "./assets" --model_id "axing_1" --src_path "path?=./assets/samples/sources/axing_1,name?=axing_1" --ref_path "path?=./assets/samples/references/bantangzhuyi_1.mp4,name?=bantangzhuyi_1,pose_fc?=300"

and got following error. What did I miss?

primitives_dir: ./results\primitives\bantangzhuyi_1
processed_dir: ./results\primitives\bantangzhuyi_1\processed
vid_info_path: ./results\primitives\bantangzhuyi_1\processed\vid_info.pkl

Process PreprocessConsumer_0:
Traceback (most recent call last):
File "C:\ProgramData\Miniconda3\envs\venv\lib\multiprocessing\process.py", line 258, in bootstrap
self.run()
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 41, in run
device=device
File "e:\bin\ipercore-main\iPERCore\tools\processors\preprocessors.py", line 125, in init
device=device
File "e:\bin\ipercore-main\iPERCore\tools\human_mattors_init
.py", line 11, in build_mattor
from .point_render_parser import PointRenderGCAMattor
File "e:\bin\ipercore-main\iPERCore\tools\human_mattors\point_render_parser.py", line 16, in
from mmdet.apis import init_detector, inference_detector
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmdet\apis_init_.py", line 1, in
from .inference import (async_inference_detector, inference_detector,
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmdet\apis\inference.py", line 7, in
from mmcv.ops import RoIPool
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\ops_init_.py", line 1, in
from .bbox import bbox_overlaps
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\ops\bbox.py", line 3, in
ext_module = ext_loader.load_ext('ext', ['bbox_overlaps'])
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 11, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "C:\ProgramData\Miniconda3\envs\venv\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified procedure could not be found.
Pre-processing: digital deformation start...
Process HumanDigitalDeformConsumer_0:
Traceback (most recent call last):
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 136, in run
prepared_inputs = self.prepare_inputs_for_run_cloth_smpl_links(process_info)
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 210, in prepare_inputs_for_run_cloth_smpl_links
src_infos = process_info.convert_to_src_info(self.opt.num_source)
File "e:\bin\ipercore-main\iPERCore\services\options\process_info.py", line 140, in convert_to_src_info
src_infos = read_src_infos(self.vid_infos, num_source)
File "e:\bin\ipercore-main\iPERCore\services\options\process_info.py", line 233, in read_src_infos
pad_ids = np.random.choice(src_ids, need_pad)
File "mtrand.pyx", line 908, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Miniconda3\envs\venv\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 153, in run
except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 2.
Pre-processing: failed...

no kernel image is available for execution on the device

Error in forward_face_index_map_1: no kernel image is available for execution on the device
Error in forward_face_index_map_2: no kernel image is available for execution on the device
Win10系统
2070super
Driver Version: 460.89
CUDA Version: 11.2
如何解决

"Failed to build neural-renderer"

Hi, iPERDance team!
I really appreciate your great work!
I met some problems when running the command "python setup.py develop" :

Building wheel for neural-renderer (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/ang/anaconda3/envs/iPERDance/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-1b_3r1yg/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-1b_3r1yg/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-be6hts_5
       cwd: /tmp/pip-req-build-1b_3r1yg/
  Complete output (334 lines):
  running bdist_wheel
  /home/ang/anaconda3/envs/iPERDance/lib/python3.6/site-packages/torch/utils/cpp_extension.py:339: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
    warnings.warn(msg.format('we could not find ninja.'))
...

2020-12-11 22-07-43error

(My environment: ubuntu16.04, cuda10.1, gcc/g++7.5.0, anaconda python3.6.6, and I did activate conda env when I running the command)

I have tried several times to run the command but I met the same error.
Hope your advice!
Thanks in advance~

Released version cannot be downloaded

Thank you for this wonderful project. The released version cannot be downloaded in my area. I was wondering if you could put it on baiduyun or other cloud drive all people can download. Thanks.

Failed to run main demo

Hi there, I followed a tutorial for the Windows installation of this AI, everything should be installed correctly but when I run the main demo script it gives me this error
Immagine

I would like to know how to fix this issue, thank you.

运行motion_imitate.py报错?

The path to the mixture prior "./assets/checkpoints/pose3d\gmm_08.pkl" does not exist, exiting!
Pre-processing: digital deformation start...
Process HumanDigitalDeformConsumer_0:
Traceback (most recent call last):
File "A:\py_workspace\iPERCore-main3\iPERCore-main\iPERCore\services\preprocess.py", line 136, in run
prepared_inputs = self.prepare_inputs_for_run_cloth_smpl_links(process_info)
File "A:\py_workspace\iPERCore-main3\iPERCore-main\iPERCore\services\preprocess.py", line 210, in prepare_inputs_for_run_cloth_smpl_links
src_infos = process_info.convert_to_src_info(self.opt.num_source)
File "A:\py_workspace\iPERCore-main3\iPERCore-main\iPERCore\services\options\process_info.py", line 140, in convert_to_src_info
src_infos = read_src_infos(self.vid_infos, num_source)
File "A:\py_workspace\iPERCore-main3\iPERCore-main\iPERCore\services\options\process_info.py", line 237, in read_src_infos
pad_ids = np.random.choice(src_ids, need_pad)
File "mtrand.pyx", line 908, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "A:\Anaconda\envs\IPERcore37\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "A:\py_workspace\iPERCore-main3\iPERCore-main\iPERCore\services\preprocess.py", line 153, in run
except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 2.
Pre-processing: failed...

Process finished with exit code 0

FileNotFoundError: Cannot read cuda version file

PS E:\iPERCore> python setup.py develop
Traceback (most recent call last):
File "E:\iPERCore\setup.py", line 257, in
torch_torchvision_mmcv = platform_dependencies()
File "E:\iPERCore\setup.py", line 130, in platform_dependencies
cuda_version = get_cuda_version()
File "E:\iPERCore\setup.py", line 86, in get_cuda_version
raise FileNotFoundError(f"Cannot read cuda version file {cuda_version_file}")
FileNotFoundError: Cannot read cuda version file C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\version.txt
到对应的目录下看也没有这个文件
这种是什么情况?换了CUDA版本也不行

Character is tied to the center of the frame

I noticed that in the demo on your website, a character can move around in the frame, but in the Colab demo it seems, that a character is always locked to the center of the frame.
Screenshot
Is this by design? Can you make this configurable?

When can we expect code?

I know that you are working as quick as possible, and thank you for working on this amazing thing, but when do you expect you'll be done?

ValueError: Digital filter critical frequencies must be 0 < Wn < 1

I try to generate imitation with a custom video but it gives this error.

"/content/iPERCore/assets/samples/references/anai.mp4,name?=ana,pose_fc?=00"
/content/iPERCore/iPERCore/services/options/meta_info.py:170: UserWarning: /content/iPERCore/assets/samples/references/anai.mp4 has no key, and it is the first item, here we will set it as the `path`.
  warnings.warn(f"{kv_pair} has no key, and it is the first item, "
ffmpeg -y -i /content/iPERCore/assets/samples/references/anai.mp4 -ab 160k -ac 2 -ar 44100 -vn ./results/primitives/ana/processed/audio.mp3 -loglevel quiet
ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate /content/iPERCore/assets/samples/references/anai.mp4
	Pre-processing: start...
----------------------MetaProcess----------------------
meta_input:
	path: /content/iPERCore/assets/samples/sources/65142266_019_c583.jpg
	bg_path: 
	name: 
primitives_dir: ./results/primitives/
processed_dir: ./results/primitives/processed
vid_info_path: ./results/primitives/processed/vid_info.pkl
-------------------------------------------------------
	has_run_detector: True
	has_run_cropper: True
	has_run_3dpose: True
	has_find_front: True
	has_run_parser: True
	has_run_inpaintor: True
	has_run_deform: True
	has_finished: True
----------------------MetaProcess----------------------
meta_input:
	path: /content/iPERCore/assets/samples/references/anai.mp4
	bg_path: 
	name: ana
	audio: ./results/primitives/ana/processed/audio.mp3
	fps: 30.0
	pose_fc: 0.0
	cam_fc: 100
primitives_dir: ./results/primitives/ana
processed_dir: ./results/primitives/ana/processed
vid_info_path: ./results/primitives/ana/processed/vid_info.pkl
-------------------------------------------------------
/content/iPERCore/assets/samples/references/anai.mp4 Writing frames to file
ffmpeg -i /content/iPERCore/assets/samples/references/anai.mp4 -start_number 0 ./results/primitives/ana/processed/orig_images/frame_%08d.png
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/iPERCore/assets/samples/references/anai.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2020-10-17T06:58:39.000000Z
  Duration: 00:00:15.07, start: 0.000000, bitrate: 577 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 206x222 [SAR 1:1 DAR 103:111], 447 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
    Metadata:
      creation_time   : 2020-10-17T06:58:40.000000Z
      handler_name    : Mainconcept MP4 Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2020-10-17T06:58:40.000000Z
      handler_name    : Mainconcept MP4 Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
Output #0, image2, to './results/primitives/ana/processed/orig_images/frame_%08d.png':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf57.83.100
    Stream #0:0(eng): Video: png, rgb24, 206x222 [SAR 1:1 DAR 103:111], q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2020-10-17T06:58:40.000000Z
      handler_name    : Mainconcept MP4 Video Media Handler
      encoder         : Lavc57.107.100 png
frame=  451 fps=364 q=-0.0 Lsize=N/A time=00:00:15.03 bitrate=N/A speed=12.1x    
video:25552kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
	1.1 Preprocessing, running Preprocessor to detect the human boxes of ./results/primitives/ana/processed/orig_images...
100% 451/451 [00:31<00:00, 14.44it/s]
	1.1 Preprocessing, finish detect the human boxes of ./results/primitives/ana/processed/orig_images ...
	1.2 Preprocessing, cropping all images in ./results/primitives/ana/processed/orig_images by estimated boxes ...
451it [00:04, 109.55it/s]
	1.2 Preprocessing, finish crop the human by boxes, and save them in ./results/primitives/ana/processed/images ...
	1.3 Preprocessing, running Preprocessor to 3D pose estimation of all images in./results/primitives/ana/processed/images ...
100% 15/15 [00:10<00:00,  1.38it/s]
	1.3 Preprocessing, finish 3D pose estimation successfully ....
Preprocessor has finished...
		Pre-processing: digital deformation start...
		Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 2. 
	Pre-processing: successfully...
Step 2: running personalization on
Step 2: personalization done, saved in ./results/models/donald_trump_2/personalized.pth...
Step 3: running imitator.
Network AttLWB-SPADE was created
Loading net from ./results/models/donald_trump_2/personalized.pth
Model Imitator was created
/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py:3385: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.
  warnings.warn("Default grid_sample and affine_grid behavior has changed "
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/content/iPERCore/iPERCore/services/run_imitator.py", line 180, in <module>
    run_imitator(opt=OPT)
  File "/content/iPERCore/iPERCore/services/run_imitator.py", line 169, in run_imitator
    all_meta_outputs = imitate(opt)
  File "/content/iPERCore/iPERCore/services/run_imitator.py", line 135, in imitate
    ref_smpls = temporal_smooth_smpls(ref_smpls, pose_fc=meta_output.pose_fc, cam_fc=meta_output.cam_fc)
  File "/content/iPERCore/iPERCore/tools/utils/signals/smooth.py", line 210, in temporal_smooth_smpls
    ref_rot6d = get_smooth_params(ref_rot6d, fc=pose_fc)
  File "/content/iPERCore/iPERCore/tools/utils/signals/smooth.py", line 90, in get_smooth_params
    b, a = signal.butter(n, w, 'low')
  File "/usr/local/lib/python3.6/dist-packages/scipy/signal/filter_design.py", line 2894, in butter
    output=output, ftype='butter', fs=fs)
  File "/usr/local/lib/python3.6/dist-packages/scipy/signal/filter_design.py", line 2367, in iirfilter
    raise ValueError("Digital filter critical frequencies "
ValueError: Digital filter critical frequencies must be 0 < Wn < 1

What requirements to expect?

Are we gonna be able to run this on mid range gaming computers? What vram/ram/gpu requirements to expect? Can we expect google collab support?

Error in forward_face_index_map_1: no kernel image is available for execution on the device

On the precompiled version, i ran the trump demo and got this error

Network AttLWB-SPADE was created
Loading net from ./results\models\donald_trump_2\personalized.pth
Model Imitator was created
Error in forward_face_index_map_1: no kernel image is available for execution on the device
Error in forward_face_index_map_2: no kernel image is available for execution on the device
Error in forward_face_index_map_1: no kernel image is available for execution on the device
Error in forward_face_index_map_2: no kernel image is available for execution on the device
Error in forward_face_index_map_1: no kernel image is available for execution on the device
Error in forward_face_index_map_2: no kernel image is available for execution on the device
torch\nn\functional.py:3384: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.
warnings.warn("Default grid_sample and affine_grid behavior has changed "

GUI

Please help,
inform once GUI is formed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.