-
```python
def norm(self, tensor, p):
return torch.mean(torch.pow(torch.abs(tensor), p))
...
pixel_grad1 = w1 * self.norm((self.output[:, :, 1:, :] - self.output[:, :, :-1, :]), p)
```
…
-
When creating a grain boundary the repetition is not functional. For example:
```
System.create.defect.grain_boundary(axis=[1,-1,0], sigma=3, gb_plane=[1,1,-2],
element = 'Fe'…
-
Thanks for your implementation. I run the code in a training set of ~ 150k rows and a test set of ~ 80k rows with ~24 features and get Memory Error. The stack trace is:
```
File "modeling.py", lin…
-
If I follow the steps in the small molecule tutorial data and then scale the integrated intensities in P1:
```
dials.scale integrated.{expt,refl} output.experiments=default_P1.expt output.reflecti…
-
I am running v 18.2.0 on windows(Cygwin).
Example 4 strain plot does not match the manual.
![image](https://user-images.githubusercontent.com/64080212/88462768-d9e23000-ce7b-11ea-896f-9206601c5f25…
-
```
S,K,T,t,r,sigma=symbols('S K T t r sigma')
simplify(-sqrt(2)*K*exp(-r*(T - t))*exp(-(sigma*sqrt(T - t)/2 - log(S*exp(r*(T - t))/K)/(sigma*sqrt(T - t)))**2/2)/(2*sqrt(pi)*S*sigma*sqrt(T - t)) + sqr…
-
Whenever I pass in my distribution into the function that calculates the lognormal pdf I get the following error:
```
def lognormal_pdf(x, sigma, mu):
'''
Function will create the lo…
-
[2024-07-14] 删除自动兼容ControlNet, 新增MZ_KolorsControlNetPatch节点
Error occurred when executing KSamplerAdvanced //Inspire:
'UNetModel' object has no attribute 'encoder_hid_proj'
File "D:\softz\Comfy…
-
Hi, thanks for developing this great package! I’m currently working with Trackpy for particle tracking, and it outputs trajectory data as a Pandas DataFrame with columns like `frame`, `particle`, `x`,…
-