amildravid4292 commited on
Commit
5e37626
1 Parent(s): 4ab2ef8

Update sampling.py

Browse files
Files changed (1) hide show
  1. sampling.py +1 -10
sampling.py CHANGED
@@ -40,16 +40,7 @@ def sample_weights(unet, proj, mean, std, v, device, factor = 1.0):
40
  for i in range(1000):
41
  sample[0, i] = torch.normal(m[i], factor*standev[i], (1,1))
42
 
43
- # load weights into network
44
- network = LoRAw2w( sample, mean, std, v,
45
- unet,
46
- rank=1,
47
- multiplier=1.0,
48
- alpha=27.0,
49
- train_method="xattn-strict"
50
- ).to(device, torch.bfloat16)
51
-
52
- return network
53
 
54
 
55
 
 
40
  for i in range(1000):
41
  sample[0, i] = torch.normal(m[i], factor*standev[i], (1,1))
42
 
43
+ return sample
 
 
 
 
 
 
 
 
 
44
 
45
 
46