zatochu commited on
Commit
02984a5
·
verified ·
1 Parent(s): ccd01ad

Upload addvpredkey.py

Browse files
Files changed (1) hide show
  1. addvpredkey.py +6 -0
addvpredkey.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from safetensors.torch import load_file, save_file
2
+ import torch
3
+ state_dict = load_file('./EasyFluffXL-Vnokey.safetensors')
4
+ state_dict['v_pred'] = torch.tensor([])
5
+ state_dict['ztsnr'] = torch.tensor([]) # Added for PR #16569
6
+ save_file(state_dict, './EasyFluffXL-V.safetensors')