autonomousvision / giraffe

This repository contains the code for the CVPR 2021 paper "GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields"
https://m-niemeyer.github.io/project-pages/giraffe/index.html
MIT License
1.23k stars 160 forks source link

When I test code on the provided pre-trained models, it could not be completed successfully #45

Closed xiaoxinxin1314 closed 2 years ago

xiaoxinxin1314 commented 2 years ago

when I run the code "python render.py configs/256res/cars_256_pretrained.yaml", it show the RuntimeError, I dont know how to solve it,could you give me some help,thank you so much!

The error as follows PS D:\ChromeD\giraffe-main> python render.py configs/256res/cars_256_pretrained.yaml https://s3.eu-central-1.amazonaws.com/avg-projects/giraffe/models/checkpoint_cars256-d9ea5e11.pt => Loading checkpoint from url... Traceback (most recent call last): File "render.py", line 26, in checkpoint_io.load(cfg['test']['model_file']) File "D:\ChromeD\giraffe-main\im2scene\checkpoints.py", line 62, in load return self.load_url(filename) File "D:\ChromeD\giraffe-main\im2scene\checkpoints.py", line 93, in load_url state_dict = model_zoo.load_url(url, progress=True) File "D:\Appstore3\Anaconda\envs\giraffe\lib\site-packages\torch\hub.py", line 559, in load_state_dict_from_url return torch.load(cached_file, map_location=map_location) File "D:\Appstore3\Anaconda\envs\giraffe\lib\site-packages\torch\serialization.py", line 587, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "D:\Appstore3\Anaconda\envs\giraffe\lib\site-packages\torch\serialization.py", line 242, in init super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory

m-niemeyer commented 2 years ago

Hi, sorry but we do not support Windows or any other OS except for Ubuntu Linux as I don't have any means to test the code on other operating systems.