HypoX64 / DeepMosaics

Automatically remove the mosaics in images and videos, or add mosaics to them.
GNU General Public License v3.0
2.14k stars 441 forks source link

Unable To Find dll #58

Open mirkojpn87 opened 3 years ago

mirkojpn87 commented 3 years ago

hi. when i click run on GUI version a popup Terminal will show up that say "DeepMosaics_0.5.0_gpu_windows_amd64\DeepMosaics_V0.5.0_gpu\core\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies. Please press any key to exit." how i should fix it?

HypoX64 commented 3 years ago

You have to make sure you have installed Nvidia driver 460+ , CUDA:11.0

mirkojpn87 commented 3 years ago

hi Hypo! thank's you for your work. i was able to fix that as you said was because CUDA was missing. now i have a different error that say : UserWarning: You are importing torchvision within its own root folder (C:\Users\mirko\Downloads\DeepMosaics_V0.5.1-20210603T100301Z-002\DeepMosaics_V0.5.1\DeepMosaics_0.5.1_gpu_windows_amd64\DeepMosaics_0.5.1_gpu\core). This is not expected to work and may give errors. Please exit the torchvision project source and relaunch your python interpreter. segment parameters: 12.4M netG parameters: 26.65M --------------------ERROR-------------------- --------------Environment-------------- DeepMosaics: 0.5.1 Python: 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] Pytorch: 1.7.1 OpenCV: 4.1.2 Platform: Windows-10-10.0.19041-SP0 --------------BUG-------------- Error Type: <class 'RuntimeError'>

any idea?

HypoX64 commented 3 years ago

Does it have more error messages?

mirkojpn87 commented 3 years ago

yes sure. is this

\DeepMosaics_V0.5.1-20210603T100301Z-002\DeepMosaics_V0.5.1\DeepMosaics_0.5.1_gpu_windows_amd64\DeepMosaics_0.5.1_gpu\core\torchvision\__init__.py:26: UserWarning: You are importing torchvision within its own root folder (C:\Users\mirko\Downloads\DeepMosaics_V0.5.1-20210603T100301Z-002\DeepMosaics_V0.5.1\DeepMosaics_0.5.1_gpu_windows_amd64\DeepMosaics_0.5.1_gpu\core). This is not expected to work and may give errors. Please exit the torchvision project source and relaunch your python interpreter. segment parameters: 12.4M netG parameters: 26.65M --------------------ERROR-------------------- --------------Environment-------------- DeepMosaics: 0.5.1 Python: 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] Pytorch: 1.7.1 OpenCV: 4.1.2 Platform: Windows-10-10.0.19041-SP0 --------------BUG-------------- Error Type: <class 'RuntimeError'> Error(s) in loading state_dict for BVDNet: Missing key(s) in state_dict: "encoder3d.model.0.weight_orig", "encoder3d.model.0.weight", "encoder3d.model.0.weight_u", "encoder3d.model.0.bias", "encoder3d.model.0.weight_orig", "encoder3d.model.0.weight_u", "encoder3d.model.0.weight_v", "encoder3d.model.2.weight_orig", "encoder3d.model.2.weight", "encoder3d.model.2.weight_u", "encoder3d.model.2.bias", "encoder3d.model.2.weight_orig", "encoder3d.model.2.weight_u", "encoder3d.model.2.weight_v", "encoder3d.model.4.weight_orig", "encoder3d.model.4.weight", "encoder3d.model.4.weight_u", "encoder3d.model.4.bias", "encoder3d.model.4.weight_orig", "encoder3d.model.4.weight_u", "encoder3d.model.4.weight_v", "encoder3d.model.6.weight_orig", "encoder3d.model.6.weight", "encoder3d.model.6.weight_u", "encoder3d.model.6.bias", "encoder3d.model.6.weight_orig", "encoder3d.model.6.weight_u", "encoder3d.model.6.weight_v", "encoder2d.model.1.weight_orig", "encoder2d.model.1.weight", "encoder2d.model.1.weight_u", "encoder2d.model.1.bias", "encoder2d.model.1.weight_orig", "encoder2d.model.1.weight_u", "encoder2d.model.1.weight_v", "encoder2d.model.4.weight_orig", "encoder2d.model.4.weight", "encoder2d.model.4.weight_u", "encoder2d.model.4.bias", "encoder2d.model.4.weight_orig", "encoder2d.model.4.weight_u", "encoder2d.model.4.weight_v", "encoder2d.model.7.weight_orig", "encoder2d.model.7.weight", "encoder2d.model.7.weight_u", "encoder2d.model.7.bias", "encoder2d.model.7.weight_orig", "encoder2d.model.7.weight_u", "encoder2d.model.7.weight_v", "encoder2d.model.10.weight_orig", "encoder2d.model.10.weight", "encoder2d.model.10.weight_u", "encoder2d.model.10.bias", "encoder2d.model.10.weight_orig", "encoder2d.model.10.weight_u", "encoder2d.model.10.weight_v", "blocks.0.conv_block.1.weight_orig", "blocks.0.conv_block.1.weight", "blocks.0.conv_block.1.weight_u", "blocks.0.conv_block.1.bias", "blocks.0.conv_block.1.weight_orig", "blocks.0.conv_block.1.weight_u", "blocks.0.conv_block.1.weight_v", "blocks.0.conv_block.4.weight_orig", "blocks.0.conv_block.4.weight", "blocks.0.conv_block.4.weight_u", "blocks.0.conv_block.4.bias", "blocks.0.conv_block.4.weight_orig", "blocks.0.conv_block.4.weight_u", "blocks.0.conv_block.4.weight_v", "blocks.1.conv_block.1.weight_orig", "blocks.1.conv_block.1.weight", "blocks.1.conv_block.1.weight_u", "blocks.1.conv_block.1.bias", "blocks.1.conv_block.1.weight_orig", "blocks.1.conv_block.1.weight_u", "blocks.1.conv_block.1.weight_v", "blocks.1.conv_block.4.weight_orig", "blocks.1.conv_block.4.weight", "blocks.1.conv_block.4.weight_u", "blocks.1.conv_block.4.bias", "blocks.1.conv_block.4.weight_orig", "blocks.1.conv_block.4.weight_u", "blocks.1.conv_block.4.weight_v", "blocks.2.conv_block.1.weight_orig", "blocks.2.conv_block.1.weight", "blocks.2.conv_block.1.weight_u", "blocks.2.conv_block.1.bias", "blocks.2.conv_block.1.weight_orig", "blocks.2.conv_block.1.weight_u", "blocks.2.conv_block.1.weight_v", "blocks.2.conv_block.4.weight_orig", "blocks.2.conv_block.4.weight", "blocks.2.conv_block.4.weight_u", "blocks.2.conv_block.4.bias", "blocks.2.conv_block.4.weight_orig", "blocks.2.conv_block.4.weight_u", "blocks.2.conv_block.4.weight_v", "blocks.3.conv_block.1.weight_orig", "blocks.3.conv_block.1.weight", "blocks.3.conv_block.1.weight_u", "blocks.3.conv_block.1.bias", "blocks.3.conv_block.1.weight_orig", "blocks.3.conv_block.1.weight_u", "blocks.3.conv_block.1.weight_v", "blocks.3.conv_block.4.weight_orig", "blocks.3.conv_block.4.weight", "blocks.3.conv_block.4.weight_u", "blocks.3.conv_block.4.bias", "blocks.3.conv_block.4.weight_orig", "blocks.3.conv_block.4.weight_u", "blocks.3.conv_block.4.weight_v", "decoder.0.convup.2.weight_orig", "decoder.0.convup.2.weight", "decoder.0.convup.2.weight_u", "decoder.0.convup.2.bias", "decoder.0.convup.2.weight_orig", "decoder.0.convup.2.weight_u", "decoder.0.convup.2.weight_v", "decoder.1.convup.2.weight_orig", "decoder.1.convup.2.weight", "decoder.1.convup.2.weight_u", "decoder.1.convup.2.bias", "decoder.1.convup.2.weight_orig", "decoder.1.convup.2.weight_u", "decoder.1.convup.2.weight_v", "decoder.2.convup.2.weight_orig", "decoder.2.convup.2.weight", "decoder.2.convup.2.weight_u", "decoder.2.convup.2.bias", "decoder.2.convup.2.weight_orig", "decoder.2.convup.2.weight_u", "decoder.2.convup.2.weight_v", "decoder.4.weight", "decoder.4.bias". Unexpected key(s) in state_dict: "encoder_2d.model.1.weight", "encoder_2d.model.2.weight", "encoder_2d.model.2.bias", "encoder_2d.model.2.running_mean", "encoder_2d.model.2.running_var", "encoder_2d.model.2.num_batches_tracked", "encoder_2d.model.4.weight", "encoder_2d.model.5.weight", "encoder_2d.model.5.bias", "encoder_2d.model.5.running_mean", "encoder_2d.model.5.running_var", "encoder_2d.model.5.num_batches_tracked", "encoder_2d.model.7.weight", "encoder_2d.model.8.weight", "encoder_2d.model.8.bias", "encoder_2d.model.8.running_mean", "encoder_2d.model.8.running_var", "encoder_2d.model.8.num_batches_tracked", "encoder_3d.down1.conv.0.weight", "encoder_3d.down1.conv.1.weight", "encoder_3d.down1.conv.1.bias", "encoder_3d.down1.conv.1.running_mean", "encoder_3d.down1.conv.1.running_var", "encoder_3d.down1.conv.1.num_batches_tracked", "encoder_3d.down2.conv.0.weight", "encoder_3d.down2.conv.1.weight", "encoder_3d.down2.conv.1.bias", "encoder_3d.down2.conv.1.running_mean", "encoder_3d.down2.conv.1.running_var", "encoder_3d.down2.conv.1.num_batches_tracked", "encoder_3d.down3.conv.0.weight", "encoder_3d.down3.conv.1.weight", "encoder_3d.down3.conv.1.bias", "encoder_3d.down3.conv.1.running_mean", "encoder_3d.down3.conv.1.running_var", "encoder_3d.down3.conv.1.num_batches_tracked", "encoder_3d.conver2d.0.weight", "encoder_3d.conver2d.1.weight", "encoder_3d.conver2d.1.bias", "encoder_3d.conver2d.1.running_mean", "encoder_3d.conver2d.1.running_var", "encoder_3d.conver2d.1.num_batches_tracked", "decoder_2d.model.0.conv_block.1.weight", "decoder_2d.model.0.conv_block.2.weight", "decoder_2d.model.0.conv_block.2.bias", "decoder_2d.model.0.conv_block.2.running_mean", "decoder_2d.model.0.conv_block.2.running_var", "decoder_2d.model.0.conv_block.2.num_batches_tracked", "decoder_2d.model.0.conv_block.5.weight", "decoder_2d.model.0.conv_block.6.weight", "decoder_2d.model.0.conv_block.6.bias", "decoder_2d.model.0.conv_block.6.running_mean", "decoder_2d.model.0.conv_block.6.running_var", "decoder_2d.model.0.conv_block.6.num_batches_tracked", "decoder_2d.model.1.conv_block.1.weight", "decoder_2d.model.1.conv_block.2.weight", "decoder_2d.model.1.conv_block.2.bias", "decoder_2d.model.1.conv_block.2.running_mean", "decoder_2d.model.1.conv_block.2.running_var", "decoder_2d.model.1.conv_block.2.num_batches_tracked", "decoder_2d.model.1.conv_block.5.weight", "decoder_2d.model.1.conv_block.6.weight", "decoder_2d.model.1.conv_block.6.bias", "decoder_2d.model.1.conv_block.6.running_mean", "decoder_2d.model.1.conv_block.6.running_var", "decoder_2d.model.1.conv_block.6.num_batches_tracked", "decoder_2d.model.2.conv_block.1.weight", "decoder_2d.model.2.conv_block.2.weight", "decoder_2d.model.2.conv_block.2.bias", "decoder_2d.model.2.conv_block.2.running_mean", "decoder_2d.model.2.conv_block.2.running_var", "decoder_2d.model.2.conv_block.2.num_batches_tracked", "decoder_2d.model.2.conv_block.5.weight", "decoder_2d.model.2.conv_block.6.weight", "decoder_2d.model.2.conv_block.6.bias", "decoder_2d.model.2.conv_block.6.running_mean", "decoder_2d.model.2.conv_block.6.running_var", "decoder_2d.model.2.conv_block.6.num_batches_tracked", "decoder_2d.model.3.conv_block.1.weight", "decoder_2d.model.3.conv_block.2.weight", "decoder_2d.model.3.conv_block.2.bias", "decoder_2d.model.3.conv_block.2.running_mean", "decoder_2d.model.3.conv_block.2.running_var", "decoder_2d.model.3.conv_block.2.num_batches_tracked", "decoder_2d.model.3.conv_block.5.weight", "decoder_2d.model.3.conv_block.6.weight", "decoder_2d.model.3.conv_block.6.bias", "decoder_2d.model.3.conv_block.6.running_mean", "decoder_2d.model.3.conv_block.6.running_var", "decoder_2d.model.3.conv_block.6.num_batches_tracked", "decoder_2d.model.4.conv_block.1.weight", "decoder_2d.model.4.conv_block.2.weight", "decoder_2d.model.4.conv_block.2.bias", "decoder_2d.model.4.conv_block.2.running_mean", "decoder_2d.model.4.conv_block.2.running_var", "decoder_2d.model.4.conv_block.2.num_batches_tracked", "decoder_2d.model.4.conv_block.5.weight", "decoder_2d.model.4.conv_block.6.weight", "decoder_2d.model.4.conv_block.6.bias", "decoder_2d.model.4.conv_block.6.running_mean", "decoder_2d.model.4.conv_block.6.running_var", "decoder_2d.model.4.conv_block.6.num_batches_tracked", "decoder_2d.model.5.conv_block.1.weight", "decoder_2d.model.5.conv_block.2.weight", "decoder_2d.model.5.conv_block.2.bias", "decoder_2d.model.5.conv_block.2.running_mean", "decoder_2d.model.5.conv_block.2.running_var", "decoder_2d.model.5.conv_block.2.num_batches_tracked", "decoder_2d.model.5.conv_block.5.weight", "decoder_2d.model.5.conv_block.6.weight", "decoder_2d.model.5.conv_block.6.bias", "decoder_2d.model.5.conv_block.6.running_mean", "decoder_2d.model.5.conv_block.6.running_var", "decoder_2d.model.5.conv_block.6.num_batches_tracked", "decoder_2d.model.6.conv_block.1.weight", "decoder_2d.model.6.conv_block.2.weight", "decoder_2d.model.6.conv_block.2.bias", "decoder_2d.model.6.conv_block.2.running_mean", "decoder_2d.model.6.conv_block.2.running_var", "decoder_2d.model.6.conv_block.2.num_batches_tracked", "decoder_2d.model.6.conv_block.5.weight", "decoder_2d.model.6.conv_block.6.weight", "decoder_2d.model.6.conv_block.6.bias", "decoder_2d.model.6.conv_block.6.running_mean", "decoder_2d.model.6.conv_block.6.running_var", "decoder_2d.model.6.conv_block.6.num_batches_tracked", "decoder_2d.model.7.conv_block.1.weight", "decoder_2d.model.7.conv_block.2.weight", "decoder_2d.model.7.conv_block.2.bias", "decoder_2d.model.7.conv_block.2.running_mean", "decoder_2d.model.7.conv_block.2.running_var", "decoder_2d.model.7.conv_block.2.num_batches_tracked", "decoder_2d.model.7.conv_block.5.weight", "decoder_2d.model.7.conv_block.6.weight", "decoder_2d.model.7.conv_block.6.bias", "decoder_2d.model.7.conv_block.6.running_mean", "decoder_2d.model.7.conv_block.6.running_var", "decoder_2d.model.7.conv_block.6.num_batches_tracked", "decoder_2d.model.8.conv_block.1.weight", "decoder_2d.model.8.conv_block.2.weight", "decoder_2d.model.8.conv_block.2.bias", "decoder_2d.model.8.conv_block.2.running_mean", "decoder_2d.model.8.conv_block.2.running_var", "decoder_2d.model.8.conv_block.2.num_batches_tracked", "decoder_2d.model.8.conv_block.5.weight", "decoder_2d.model.8.conv_block.6.weight", "decoder_2d.model.8.conv_block.6.bias", "decoder_2d.model.8.conv_block.6.running_mean", "decoder_2d.model.8.conv_block.6.running_var", "decoder_2d.model.8.conv_block.6.num_batches_tracked", "decoder_2d.model.11.weight", "decoder_2d.model.11.bias", "decoder_2d.model.12.weight", "decoder_2d.model.12.bias", "decoder_2d.model.12.running_mean", "decoder_2d.model.12.running_var", "decoder_2d.model.12.num_batches_tracked", "decoder_2d.model.16.weight", "decoder_2d.model.16.bias", "decoder_2d.model.17.weight", "decoder_2d.model.17.bias", "decoder_2d.model.17.running_mean", "decoder_2d.model.17.running_var", "decoder_2d.model.17.num_batches_tracked", "shortcut_cov.conv.1.weight", "shortcut_cov.conv.2.weight", "shortcut_cov.conv.2.bias", "shortcut_cov.conv.2.running_mean", "shortcut_cov.conv.2.running_var", "shortcut_cov.conv.2.num_batches_tracked", "merge1.conv.1.weight", "merge1.conv.2.weight", "merge1.conv.2.bias", "merge1.conv.2.running_mean", "merge1.conv.2.running_var", "merge1.conv.2.num_batches_tracked", "merge2.0.conv.1.weight", "merge2.0.conv.2.weight", "merge2.0.conv.2.bias", "merge2.0.conv.2.running_mean", "merge2.0.conv.2.running_var", "merge2.0.conv.2.num_batches_tracked", "merge2.2.weight", "merge2.2.bias". <FrameSummary file deepmosaic.py, line 77 in <module>> <FrameSummary file deepmosaic.py, line 41 in main> <FrameSummary file models\loadmodel.py, line 56 in video> <FrameSummary file torch\nn\modules\module.py, line 1052 in load_state_dict> Please press any key to exit.

gef12 commented 3 years ago

You have to make sure you have installed Nvidia driver 460+ , CUDA:11.0

cuda 11.4 and driver 471.43 accuses dll error, only the mentioned driver will work 460 and cuda 11?

NDR008 commented 3 years ago

I got the same issue, Cuda 11+ and driver 460+

gef12 commented 3 years ago

I got the same issue, Cuda 11+ and driver 460+

only cuda 11.0 works.

rukshan1489 commented 2 years ago

how to fix this segment parameters: 12.4M netG parameters: 26.65M --------------------ERROR-------------------- --------------Environment-------------- DeepMosaics: 0.5.1 Python: 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] Pytorch: 1.7.1 OpenCV: 4.0.1 Platform: Windows-10-10.0.17763-SP0 --------------BUG-------------- Error Type: <class 'RuntimeError'> Error(s) in loading state_dict for BVDNet: Missing key(s) in state_dict: "encoder3d.model.0.weight_orig", "encoder3d.model.0.weight", "encoder3d.model.0.weight_u", "encoder3d.model.0.bias", "encoder3d.model.0.weight_orig", "encoder3d.model.0.weight_u", "encoder3d.model.0.weight_v", "encoder3d.model.2.weight_orig", "encoder3d.model.2.weight", "encoder3d.model.2.weight_u", "encoder3d.model.2.bias", "encoder3d.model.2.weight_orig", "encoder3d.model.2.weight_u", "encoder3d.model.2.weight_v", "encoder3d.model.4.weight_orig", "encoder3d.model.4.weight", "encoder3d.model.4.weight_u", "encoder3d.model.4.bias", "encoder3d.model.4.weight_orig", "encoder3d.model.4.weight_u", "encoder3d.model.4.weight_v", "encoder3d.model.6.weight_orig", "encoder3d.model.6.weight", "encoder3d.model.6.weight_u", "encoder3d.model.6.bias", "encoder3d.model.6.weight_orig", "encoder3d.model.6.weight_u", "encoder3d.model.6.weight_v", "encoder2d.model.1.weight_orig", "encoder2d.model.1.weight", "encoder2d.model.1.weight_u", "encoder2d.model.1.bias", "encoder2d.model.1.weight_orig", "encoder2d.model.1.weight_u", "encoder2d.model.1.weight_v", "encoder2d.model.4.weight_orig", "encoder2d.model.4.weight", "encoder2d.model.4.weight_u", "encoder2d.model.4.bias", "encoder2d.model.4.weight_orig", "encoder2d.model.4.weight_u", "encoder2d.model.4.weight_v", "encoder2d.model.7.weight_orig", "encoder2d.model.7.weight", "encoder2d.model.7.weight_u", "encoder2d.model.7.bias", "encoder2d.model.7.weight_orig", "encoder2d.model.7.weight_u", "encoder2d.model.7.weight_v", "encoder2d.model.10.weight_orig", "encoder2d.model.10.weight", "encoder2d.model.10.weight_u", "encoder2d.model.10.bias", "encoder2d.model.10.weight_orig", "encoder2d.model.10.weight_u", "encoder2d.model.10.weight_v", "blocks.0.conv_block.1.weight_orig", "blocks.0.conv_block.1.weight", "blocks.0.conv_block.1.weight_u", "blocks.0.conv_block.1.bias", "blocks.0.conv_block.1.weight_orig", "blocks.0.conv_block.1.weight_u", "blocks.0.conv_block.1.weight_v", "blocks.0.conv_block.4.weight_orig", "blocks.0.conv_block.4.weight", "blocks.0.conv_block.4.weight_u", "blocks.0.conv_block.4.bias", "blocks.0.conv_block.4.weight_orig", "blocks.0.conv_block.4.weight_u", "blocks.0.conv_block.4.weight_v", "blocks.1.conv_block.1.weight_orig", "blocks.1.conv_block.1.weight", "blocks.1.conv_block.1.weight_u", "blocks.1.conv_block.1.bias", "blocks.1.conv_block.1.weight_orig", "blocks.1.conv_block.1.weight_u", "blocks.1.conv_block.1.weight_v", "blocks.1.conv_block.4.weight_orig", "blocks.1.conv_block.4.weight", "blocks.1.conv_block.4.weight_u", "blocks.1.conv_block.4.bias", "blocks.1.conv_block.4.weight_orig", "blocks.1.conv_block.4.weight_u", "blocks.1.conv_block.4.weight_v", "blocks.2.conv_block.1.weight_orig", "blocks.2.conv_block.1.weight", "blocks.2.conv_block.1.weight_u", "blocks.2.conv_block.1.bias", "blocks.2.conv_block.1.weight_orig", "blocks.2.conv_block.1.weight_u", "blocks.2.conv_block.1.weight_v", "blocks.2.conv_block.4.weight_orig", "blocks.2.conv_block.4.weight", "blocks.2.conv_block.4.weight_u", "blocks.2.conv_block.4.bias", "blocks.2.conv_block.4.weight_orig", "blocks.2.conv_block.4.weight_u", "blocks.2.conv_block.4.weight_v", "blocks.3.conv_block.1.weight_orig", "blocks.3.conv_block.1.weight", "blocks.3.conv_block.1.weight_u", "blocks.3.conv_block.1.bias", "blocks.3.conv_block.1.weight_orig", "blocks.3.conv_block.1.weight_u", "blocks.3.conv_block.1.weight_v", "blocks.3.conv_block.4.weight_orig", "blocks.3.conv_block.4.weight", "blocks.3.conv_block.4.weight_u", "blocks.3.conv_block.4.bias", "blocks.3.conv_block.4.weight_orig", "blocks.3.conv_block.4.weight_u", "blocks.3.conv_block.4.weight_v", "decoder.0.convup.2.weight_orig", "decoder.0.convup.2.weight", "decoder.0.convup.2.weight_u", "decoder.0.convup.2.bias", "decoder.0.convup.2.weight_orig", "decoder.0.convup.2.weight_u", "decoder.0.convup.2.weight_v", "decoder.1.convup.2.weight_orig", "decoder.1.convup.2.weight", "decoder.1.convup.2.weight_u", "decoder.1.convup.2.bias", "decoder.1.convup.2.weight_orig", "decoder.1.convup.2.weight_u", "decoder.1.convup.2.weight_v", "decoder.2.convup.2.weight_orig", "decoder.2.convup.2.weight", "decoder.2.convup.2.weight_u", "decoder.2.convup.2.bias", "decoder.2.convup.2.weight_orig", "decoder.2.convup.2.weight_u", "decoder.2.convup.2.weight_v", "decoder.4.weight", "decoder.4.bias". Unexpected key(s) in state_dict: "encoder_2d.model.1.weight", "encoder_2d.model.1.bias", "encoder_2d.model.5.weight", "encoder_2d.model.5.bias", "encoder_2d.model.9.weight", "encoder_2d.model.9.bias", "encoder_2d.model.13.weight", "encoder_2d.model.13.bias", "encoder_2d.model.17.weight", "encoder_2d.model.17.bias", "encoder_3d.inconv.conv.0.weight", "encoder_3d.inconv.conv.0.bias", "encoder_3d.down1.conv.0.weight", "encoder_3d.down1.conv.0.bias", "encoder_3d.down2.conv.0.weight", "encoder_3d.down2.conv.0.bias", "encoder_3d.down3.conv.0.weight", "encoder_3d.down3.conv.0.bias", "encoder_3d.down4.conv.0.weight", "encoder_3d.down4.conv.0.bias", "decoder_2d.model.0.conv_block.1.weight", "decoder_2d.model.0.conv_block.1.bias", "decoder_2d.model.0.conv_block.5.weight", "decoder_2d.model.0.conv_block.5.bias", "decoder_2d.model.1.conv_block.1.weight", "decoder_2d.model.1.conv_block.1.bias", "decoder_2d.model.1.conv_block.5.weight", "decoder_2d.model.1.conv_block.5.bias", "decoder_2d.model.2.conv_block.1.weight", "decoder_2d.model.2.conv_block.1.bias", "decoder_2d.model.2.conv_block.5.weight", "decoder_2d.model.2.conv_block.5.bias", "decoder_2d.model.3.conv_block.1.weight", "decoder_2d.model.3.conv_block.1.bias", "decoder_2d.model.3.conv_block.5.weight", "decoder_2d.model.3.conv_block.5.bias", "decoder_2d.model.4.conv_block.1.weight", "decoder_2d.model.4.conv_block.1.bias", "decoder_2d.model.4.conv_block.5.weight", "decoder_2d.model.4.conv_block.5.bias", "decoder_2d.model.5.conv_block.1.weight", "decoder_2d.model.5.conv_block.1.bias", "decoder_2d.model.5.conv_block.5.weight", "decoder_2d.model.5.conv_block.5.bias", "decoder_2d.model.6.conv_block.1.weight", "decoder_2d.model.6.conv_block.1.bias", "decoder_2d.model.6.conv_block.5.weight", "decoder_2d.model.6.conv_block.5.bias", "decoder_2d.model.7.conv_block.1.weight", "decoder_2d.model.7.conv_block.1.bias", "decoder_2d.model.7.conv_block.5.weight", "decoder_2d.model.7.conv_block.5.bias", "decoder_2d.model.8.conv_block.1.weight", "decoder_2d.model.8.conv_block.1.bias", "decoder_2d.model.8.conv_block.5.weight", "decoder_2d.model.8.conv_block.5.bias", "decoder_2d.model.9.weight", "decoder_2d.model.9.bias", "decoder_2d.model.12.weight", "decoder_2d.model.12.bias", "decoder_2d.model.15.weight", "decoder_2d.model.15.bias", "decoder_2d.model.18.weight", "decoder_2d.model.18.bias", "decoder_2d.model.22.weight", "decoder_2d.model.22.bias", "merge1.conv.1.weight", "merge1.conv.1.bias". <FrameSummary file deepmosaic.py, line 77 in > <FrameSummary file deepmosaic.py, line 41 in main> <FrameSummary file models\loadmodel.py, line 56 in video> <FrameSummary file torch\nn\modules\module.py, line 1051 in load_state_dict> Please press any key to exit. i`m using cpuonly version

artnFe commented 12 months ago

I have the same error.

gibrahim-cr commented 11 months ago

Same error :( Even down to the sizes

segment parameters: 12.4M
netG parameters: 26.65M

Full error below

D:\DeepMosaics_0.5.1_gpu\core\torchvision\__init__.py:26: UserWarning: You are importing torchvision within its own root folder (D:\DeepMosaics_0.5.1_gpu\core). This is not expected to work and may give errors. Please exit the torchvision project source and relaunch your python interpreter.
segment parameters: 12.4M
netG parameters: 26.65M
--------------------ERROR--------------------
--------------Environment--------------
DeepMosaics: 0.5.1
Python: 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
Pytorch: 1.7.1
OpenCV: 4.1.2
Platform: Windows-10-10.0.19041-SP0
--------------BUG--------------
Error Type: <class 'RuntimeError'>
Error(s) in loading state_dict for BVDNet:
        Missing key(s) in state_dict: "encoder3d.model.0.weight_orig", "encoder3d.model.0.weight", "encoder3d.model.0.weight_u", "encoder3d.model.0.bias", "encoder3d.model.0.weight_orig", "encoder3d.model.0.weight_u", "encoder3d.model.0.weight_v", "encoder3d.model.2.weight_orig", "encoder3d.model.2.weight", "encoder3d.model.2.weight_u", "encoder3d.model.2.bias", "encoder3d.model.2.weight_orig", "encoder3d.model.2.weight_u", "encoder3d.model.2.weight_v", "encoder3d.model.4.weight_orig", "encoder3d.model.4.weight", "encoder3d.model.4.weight_u", "encoder3d.model.4.bias", "encoder3d.model.4.weight_orig", "encoder3d.model.4.weight_u", "encoder3d.model.4.weight_v", "encoder3d.model.6.weight_orig", "encoder3d.model.6.weight", "encoder3d.model.6.weight_u", "encoder3d.model.6.bias", "encoder3d.model.6.weight_orig", "encoder3d.model.6.weight_u", "encoder3d.model.6.weight_v", "encoder2d.model.1.weight_orig", "encoder2d.model.1.weight", "encoder2d.model.1.weight_u", "encoder2d.model.1.bias", "encoder2d.model.1.weight_orig", "encoder2d.model.1.weight_u", "encoder2d.model.1.weight_v", "encoder2d.model.4.weight_orig", "encoder2d.model.4.weight", "encoder2d.model.4.weight_u", "encoder2d.model.4.bias", "encoder2d.model.4.weight_orig", "encoder2d.model.4.weight_u", "encoder2d.model.4.weight_v", "encoder2d.model.7.weight_orig", "encoder2d.model.7.weight", "encoder2d.model.7.weight_u", "encoder2d.model.7.bias", "encoder2d.model.7.weight_orig", "encoder2d.model.7.weight_u", "encoder2d.model.7.weight_v", "encoder2d.model.10.weight_orig", "encoder2d.model.10.weight", "encoder2d.model.10.weight_u", "encoder2d.model.10.bias", "encoder2d.model.10.weight_orig", "encoder2d.model.10.weight_u", "encoder2d.model.10.weight_v", "blocks.0.conv_block.1.weight_orig", "blocks.0.conv_block.1.weight", "blocks.0.conv_block.1.weight_u", "blocks.0.conv_block.1.bias", "blocks.0.conv_block.1.weight_orig", "blocks.0.conv_block.1.weight_u", "blocks.0.conv_block.1.weight_v", "blocks.0.conv_block.4.weight_orig", "blocks.0.conv_block.4.weight", "blocks.0.conv_block.4.weight_u", "blocks.0.conv_block.4.bias", "blocks.0.conv_block.4.weight_orig", "blocks.0.conv_block.4.weight_u", "blocks.0.conv_block.4.weight_v", "blocks.1.conv_block.1.weight_orig", "blocks.1.conv_block.1.weight", "blocks.1.conv_block.1.weight_u", "blocks.1.conv_block.1.bias", "blocks.1.conv_block.1.weight_orig", "blocks.1.conv_block.1.weight_u", "blocks.1.conv_block.1.weight_v", "blocks.1.conv_block.4.weight_orig", "blocks.1.conv_block.4.weight", "blocks.1.conv_block.4.weight_u", "blocks.1.conv_block.4.bias", "blocks.1.conv_block.4.weight_orig", "blocks.1.conv_block.4.weight_u", "blocks.1.conv_block.4.weight_v", "blocks.2.conv_block.1.weight_orig", "blocks.2.conv_block.1.weight", "blocks.2.conv_block.1.weight_u", "blocks.2.conv_block.1.bias", "blocks.2.conv_block.1.weight_orig", "blocks.2.conv_block.1.weight_u", "blocks.2.conv_block.1.weight_v", "blocks.2.conv_block.4.weight_orig", "blocks.2.conv_block.4.weight", "blocks.2.conv_block.4.weight_u", "blocks.2.conv_block.4.bias", "blocks.2.conv_block.4.weight_orig", "blocks.2.conv_block.4.weight_u", "blocks.2.conv_block.4.weight_v", "blocks.3.conv_block.1.weight_orig", "blocks.3.conv_block.1.weight", "blocks.3.conv_block.1.weight_u", "blocks.3.conv_block.1.bias", "blocks.3.conv_block.1.weight_orig", "blocks.3.conv_block.1.weight_u", "blocks.3.conv_block.1.weight_v", "blocks.3.conv_block.4.weight_orig", "blocks.3.conv_block.4.weight", "blocks.3.conv_block.4.weight_u", "blocks.3.conv_block.4.bias", "blocks.3.conv_block.4.weight_orig", "blocks.3.conv_block.4.weight_u", "blocks.3.conv_block.4.weight_v", "decoder.0.convup.2.weight_orig", "decoder.0.convup.2.weight", "decoder.0.convup.2.weight_u", "decoder.0.convup.2.bias", "decoder.0.convup.2.weight_orig", "decoder.0.convup.2.weight_u", "decoder.0.convup.2.weight_v", "decoder.1.convup.2.weight_orig", "decoder.1.convup.2.weight", "decoder.1.convup.2.weight_u", "decoder.1.convup.2.bias", "decoder.1.convup.2.weight_orig", "decoder.1.convup.2.weight_u", "decoder.1.convup.2.weight_v", "decoder.2.convup.2.weight_orig", "decoder.2.convup.2.weight", "decoder.2.convup.2.weight_u", "decoder.2.convup.2.bias", "decoder.2.convup.2.weight_orig", "decoder.2.convup.2.weight_u", "decoder.2.convup.2.weight_v", "decoder.4.weight", "decoder.4.bias".
        Unexpected key(s) in state_dict: "encoder_2d.model.1.weight", "encoder_2d.model.1.bias", "encoder_2d.model.5.weight", "encoder_2d.model.5.bias", "encoder_2d.model.9.weight", "encoder_2d.model.9.bias", "encoder_2d.model.13.weight", "encoder_2d.model.13.bias", "encoder_2d.model.17.weight", "encoder_2d.model.17.bias", "encoder_3d.inconv.conv.0.weight", "encoder_3d.inconv.conv.0.bias", "encoder_3d.down1.conv.0.weight", "encoder_3d.down1.conv.0.bias", "encoder_3d.down2.conv.0.weight", "encoder_3d.down2.conv.0.bias", "encoder_3d.down3.conv.0.weight", "encoder_3d.down3.conv.0.bias", "encoder_3d.down4.conv.0.weight", "encoder_3d.down4.conv.0.bias", "decoder_2d.model.0.conv_block.1.weight", "decoder_2d.model.0.conv_block.1.bias", "decoder_2d.model.0.conv_block.5.weight", "decoder_2d.model.0.conv_block.5.bias", "decoder_2d.model.1.conv_block.1.weight", "decoder_2d.model.1.conv_block.1.bias", "decoder_2d.model.1.conv_block.5.weight", "decoder_2d.model.1.conv_block.5.bias", "decoder_2d.model.2.conv_block.1.weight", "decoder_2d.model.2.conv_block.1.bias", "decoder_2d.model.2.conv_block.5.weight", "decoder_2d.model.2.conv_block.5.bias", "decoder_2d.model.3.conv_block.1.weight", "decoder_2d.model.3.conv_block.1.bias", "decoder_2d.model.3.conv_block.5.weight", "decoder_2d.model.3.conv_block.5.bias", "decoder_2d.model.4.conv_block.1.weight", "decoder_2d.model.4.conv_block.1.bias", "decoder_2d.model.4.conv_block.5.weight", "decoder_2d.model.4.conv_block.5.bias", "decoder_2d.model.5.conv_block.1.weight", "decoder_2d.model.5.conv_block.1.bias", "decoder_2d.model.5.conv_block.5.weight", "decoder_2d.model.5.conv_block.5.bias", "decoder_2d.model.6.conv_block.1.weight", "decoder_2d.model.6.conv_block.1.bias", "decoder_2d.model.6.conv_block.5.weight", "decoder_2d.model.6.conv_block.5.bias", "decoder_2d.model.7.conv_block.1.weight", "decoder_2d.model.7.conv_block.1.bias", "decoder_2d.model.7.conv_block.5.weight", "decoder_2d.model.7.conv_block.5.bias", "decoder_2d.model.8.conv_block.1.weight", "decoder_2d.model.8.conv_block.1.bias", "decoder_2d.model.8.conv_block.5.weight", "decoder_2d.model.8.conv_block.5.bias", "decoder_2d.model.9.weight", "decoder_2d.model.9.bias", "decoder_2d.model.12.weight", "decoder_2d.model.12.bias", "decoder_2d.model.15.weight", "decoder_2d.model.15.bias", "decoder_2d.model.18.weight", "decoder_2d.model.18.bias", "decoder_2d.model.22.weight", "decoder_2d.model.22.bias", "merge1.conv.1.weight", "merge1.conv.1.bias".
<FrameSummary file deepmosaic.py, line 77 in <module>>
<FrameSummary file deepmosaic.py, line 41 in main>
<FrameSummary file models\loadmodel.py, line 56 in video>
<FrameSummary file torch\nn\modules\module.py, line 1052 in load_state_dict>
Please press any key to exit.
gef12 commented 10 months ago

Which model are you using?

gef12 commented 10 months ago

Estou usando o modelo "clean_youknow_video.pth" Pada Rab, 10 Jan 2024 07.41, gerfersoncoelho @.> menulis: Qual modelo você está usando? - Responda a este e-mail diretamente, visualize-o no GitHub < # 58 (comentário) > ou cancele a inscrição < https://github.com/notifications/unsubscribe-auth/BFBRZIBNKKJHNKBWGTKPNJTYNXPSHAVCNFSM46A5DDAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGQYDCMZWGY3Q > . Você está recebendo isso porque comentou.ID da mensagem: @.>

version 0.5.1 GPU or CPU?

gef12 commented 10 months ago

At first, check if the mosaic_position.pth is in the same folder as the model

gibrahim-cr commented 10 months ago

It is in the same dir and I have the same errors.

gibrahim-cr commented 10 months ago

Ok I fixed it and I know what I did wrong so I am sure its the same issue with @ontoseno123 You are using old models.

Use these ones https://drive.google.com/drive/folders/1I3qw6IzbKZ7MVfzDS3cs_9g7EAdT-GuH

You probably used these ones https://drive.google.com/drive/folders/1YbYBiqtYsOskVNuv6MYTWXD4ZozUJ_wL

The easiest way to know for sure is check if you have a clean_youknow_video_HD.pth file in your mosaic folder. That's the old set, there is no separate HD or normal ones in the new set.

Hope that helps!