runfile('D:/Study/NIT Research/Dehazing Matlab Codes/python/2021/J MADN-main/MADN-main/test.py', wdir='D:/Study/NIT Research/Dehazing Matlab Codes/python/2021/J MADN-main/MADN-main')
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.activation.LeakyReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
[testing datasets]: 0%| | 0/471 [00:00<?, ?it/s]meta have 48691 parameters in total
net have 556679 parameters in total
[testing datasets]: 0%| | 0/471 [00:03<?, ?it/s]
Traceback (most recent call last):
File "D:\Study\NIT Research\Dehazing Matlab Codes\python\2021\J MADN-main\MADN-main\test.py", line 103, in
for image_name, input, target in test_bar:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\tqdm\std.py", line 1195, in iter
for obj in iterable:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 368, in iter
return self._get_iterator()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 314, in _get_iterator
return _MultiProcessingDataLoaderIter(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 927, in init
w.start()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.activation.LeakyReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
[testing datasets]: 0%| | 0/471 [00:00<?, ?it/s]C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.activation.LeakyReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
[testing datasets]: 0%| | 0/471 [00:00<?, ?it/s]
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="mp_main")
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Study\NIT Research\Dehazing Matlab Codes\python\2021\J MADN-main\MADN-main\test.py", line 103, in
for image_name, input, target in test_bar:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\tqdm\std.py", line 1195, in iter__
for obj in iterable:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 368, in iter__
return self._get_iterator()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 314, in _get_iterator
return _MultiProcessingDataLoaderIter(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 927, in init
w.start()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\popen_spawn_win32.py", line 46, in init
prep_data = spawn.get_preparation_data(process_obj._name)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 143, in get_preparation_data
_check_not_importing_main()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 136, in _check_not_importing_main
is not going to be frozen to produce an executable.''')
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
Thank you for your attention, the training code works fine in my environment, please try to reconfigure the environment according to the Prerequisites prompts.
The error goes as follows:
runfile('D:/Study/NIT Research/Dehazing Matlab Codes/python/2021/J MADN-main/MADN-main/test.py', wdir='D:/Study/NIT Research/Dehazing Matlab Codes/python/2021/J MADN-main/MADN-main') C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set
torch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.activation.LeakyReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or settorch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or settorch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) [testing datasets]: 0%| | 0/471 [00:00<?, ?it/s]meta have 48691 parameters in total net have 556679 parameters in total [testing datasets]: 0%| | 0/471 [00:03<?, ?it/s] Traceback (most recent call last):File "D:\Study\NIT Research\Dehazing Matlab Codes\python\2021\J MADN-main\MADN-main\test.py", line 103, in
for image_name, input, target in test_bar:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\tqdm\std.py", line 1195, in iter for obj in iterable:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 368, in iter return self._get_iterator()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 314, in _get_iterator return _MultiProcessingDataLoaderIter(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 927, in init w.start()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\process.py", line 112, in start self._popen = self._Popen(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\popen_spawn_win32.py", line 89, in init reduction.dump(process_obj, to_child)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe
C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set", line 1, in
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="mp_main")
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Study\NIT Research\Dehazing Matlab Codes\python\2021\J MADN-main\MADN-main\test.py", line 103, in
for image_name, input, target in test_bar:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\tqdm\std.py", line 1195, in iter__
for obj in iterable:
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 368, in iter__
return self._get_iterator()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 314, in _get_iterator
return _MultiProcessingDataLoaderIter(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 927, in init
w.start()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\popen_spawn_win32.py", line 46, in init
prep_data = spawn.get_preparation_data(process_obj._name)
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 143, in get_preparation_data
_check_not_importing_main()
File "C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\multiprocessing\spawn.py", line 136, in _check_not_importing_main
is not going to be frozen to produce an executable.''')
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
torch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.activation.LeakyReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or settorch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or settorch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) [testing datasets]: 0%| | 0/471 [00:00<?, ?it/s]C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or settorch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.activation.LeakyReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or settorch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) C:\Users\MY DELL\anaconda3\envs\cuda_pytorch\lib\site-packages\torch\serialization.py:786: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or settorch.nn.Module.dump_patches = True
and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) [testing datasets]: 0%| | 0/471 [00:00<?, ?it/s] Traceback (most recent call last): File "