学習およびTensorBoradを表示させる方法

実現したいこと

学習およびtensorboardを使用して学習時のlossを表示させたいです。

前提

councilGAN学習時にtrain.pyを実行したところ途中で止まり、以下のエラーメッセージが発生しました。

発生している問題・エラーメッセージ

Error ------------------------------------------------------------ Traceback (most recent call last): File "C:\Users\rt-pc\zennosuke\Council-GAN\train.py", line 227, in <module> for it, (images_a, images_b) in enumerate(zip(tmp_train_loader_a, tmp_train_loader_b)): File "C:\Users\rt-pc\anaconda3\envs\councilGAN\lib\site-packages\torch\utils\data\dataloader.py", line 279, in __iter__ return _MultiProcessingDataLoaderIter(self) File "C:\Users\rt-pc\anaconda3\envs\councilGAN\lib\site-packages\torch\utils\data\dataloader.py", line 719, in __init__ w.start() File "C:\Users\rt-pc\anaconda3\envs\councilGAN\lib\multiprocessing\process.py", line 112, in start self._popen = self._Popen(self) File "C:\Users\rt-pc\anaconda3\envs\councilGAN\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "C:\Users\rt-pc\anaconda3\envs\councilGAN\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "C:\Users\rt-pc\anaconda3\envs\councilGAN\lib\multiprocessing\popen_spawn_win32.py", line 46, in __init__ prep_data = spawn.get_preparation_data(process_obj._name) File "C:\Users\rt-pc\anaconda3\envs\councilGAN\lib\multiprocessing\spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "C:\Users\rt-pc\anaconda3\envs\councilGAN\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. ------------------------------------------------------------ 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. Training STOPED! tensorboard board launched at http://127.0.0.1:6006

該当のソースコード

python

1$ python train.py --config configs/anime2face_council_folder.yaml --output_path ./outputs/council_anime2face_256_256 --resume

試したこと

「http://127.0.0.1:6006」をクリックしたところ、「このサイトにアクセスできません」と出てきてしまいます。

補足情報(FW/ツールのバージョンなど)

https://github.com/Onr/Council-GAN

コメントを投稿

0 コメント