liuzhi19121999 / AnimeGANv3Pytorch

This is the PyTorch version of AnimeGANv3 model based on the original DTGAN model.
1 stars 1 forks source link

I have a question with FileNotFoundError: [Errno 2] No such file or directory: './vgg19.pth' #2

Open fly125 opened 1 month ago

fly125 commented 1 month ago

I can't get the file. Traceback (most recent call last): File "D:\BaiduNetdiskDownload\AnimeGANv2Pytorch\diff_fly\pix2pix_anime\AnimeGANv3Pytorch\train.py", line 1, in from AnimeGAN import Trainer File "D:\BaiduNetdiskDownload\AnimeGANv2Pytorch\diff_fly\pix2pix_anime\AnimeGANv3Pytorch\AnimeGAN.py", line 6, in from ops import con_loss_fn, style_loss_decentralization_3, region_smoothing_loss, \ File "D:\BaiduNetdiskDownload\AnimeGANv2Pytorch\diff_fly\pix2pix_anime\AnimeGANv3Pytorch\ops.py", line 4, in from vgg19 import VGG19Multi, VGG19Single File "D:\BaiduNetdiskDownload\AnimeGANv2Pytorch\diff_fly\pix2pix_anime\AnimeGANv3Pytorch\vgg19.py", line 28, in vgg19_data = torch.load("./vgg19.pth") File "D:\BaiduNetdiskDownload\AnimeGANv2Pytorch\animeganv2_pytorch_venv\lib\site-packages\torch\serialization.py", line 986, in load with _open_file_like(f, 'rb') as opened_file: File "D:\BaiduNetdiskDownload\AnimeGANv2Pytorch\animeganv2_pytorch_venv\lib\site-packages\torch\serialization.py", line 435, in _open_file_like return _open_file(name_or_buffer, mode) File "D:\BaiduNetdiskDownload\AnimeGANv2Pytorch\animeganv2_pytorch_venv\lib\site-packages\torch\serialization.py", line 416, in init super().init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: './vgg19.pth'

liuzhi19121999 commented 1 month ago

VGG19.pth is the pytorch model data in root directory of project. It can be downloaded in Essential Resource