I added more error log but I doubt this has something to do with encoding as I downloaded file from github and did no changes on it. I simply do this on Ipython console:
%run projector.py --outdir=out --target=mytargetimg.png --network=https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada-pytorch/pretrained/ffhq.pkl
Could this be related to system locale. Here is the output of cl.exe:

resim983×483 10.9 KB

I guess root cause is this:
  

      github.com/NVlabs/stylegan2-ada-pytorch
  

  
    
  
	  
  

  
    
      UserWarning: Error checking compiler version for cl: 'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte 37
    

    
      
        opened 
        
          
        
        Feb 21, 2021
      
      


      
        
          
          Dok11
        
      
    

    
    
  


  
    **Describe the bug**
```
(stylegan2-ada) E:\Projects\stylegan2-ada>python ./st…ylegan2-ada/generate.py --outdir=out --seeds=0-35 --class=2 --network=https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada-pytorch/pretrained/cifar10.pkl
Loading networks from "https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada-pytorch/pretrained/cifar10.pkl"...
Generating image for seed 0 (0/36) ...
Setting up PyTorch plugin "bias_act_plugin"... C:\Users\oleg\AppData\Local\Continuum\anaconda3\envs\stylegan2-ada\lib\site-packages\torch\utils\cpp_extension.py:287: UserWarning: Error checking compiler version for cl: 'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte
  warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
Done.
Setting up PyTorch plugin "upfirdn2d_plugin"... C:\Users\oleg\AppData\Local\Continuum\anaconda3\envs\stylegan2-ada\lib\site-packages\torch\utils\cpp_extension.py:287: UserWarning: Error checking compiler version for cl: 'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte
  warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
Done.
Generating image for seed 1 (1/36) ...
Generating image for seed 2 (2/36) ...
Generating image for seed 3 (3/36) ...
```

Saw these warnings but images generated successfull

**Desktop (please complete the following information):**
 - OS: Windows 10
 - PyTorch version: 1.7.1
 - CUDA toolkit version: 11.0
 - NVIDIA driver version: 461.40
 - GPU RTX 2080
 - Docker: —