davidbau / rewriting

Rewriting a Deep Generative Model, ECCV 2020 (oral). Interactive tool to directly edit the rules of a GAN to synthesize scenes with objects added, removed, or altered. Change StyleGANv2 to make extravagant eyebrows, or horses wearing hats.
https://rewriting.csail.mit.edu/
MIT License
537 stars 77 forks source link

running rewriting-interface issue #3

Closed ucaswindlike closed 4 years ago

ucaswindlike commented 4 years ago

when running rewriting-interface, it comes out an error: errono13 Permission denied:'/temp/torch_extensions/fused'

davidbau commented 4 years ago

This is due to a pytorch bug that shows up on shared systems where /temp/ may also be used by another user. Somebody else has created that temp directory and you do not have access.

https://github.com/pytorch/pytorch/issues/34238

You can use the env variable TORCH_EXTENSIONS_DIR to change the dirname to avoid this (e.g., in your .bashrc) export TORCH_EXTENSIONS_DIR="/tmp/${USER}/torch_extensions"