We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
current (working) implementation of TV in 2D and 3D:
def tv2d(params): # assuming a (1, H, W, 1) shape sy = params[:, 1:, :, :] - params[:, :-1, :, :] sx = params[:, :, 1:, :] - params[:, :, :-1, :] tvloss = jnp.sqrt((sx**2).sum() + (sy**2).sum() + 1e-8) return tvloss
def tv3d(params): # assuming a (D, H, W) shape sy = params[:, 1:, :] - params[:, :-1, :] sx = params[:, :, 1:] - params[:, :, :-1] sz = params[1:, :, :] - params[:-1, :, :] tvloss = jnp.sqrt((sx**2).sum() + (sy**2).sum() + (sz**2).sum() + 1e-8) return tvloss
Sorry, something went wrong.
diptodip
GJBoth
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: