Compare commits

..

No commits in common. "ad0b45e198db6438472c5e2d631e85524b065336" and "b0030fe87fa2744fa7884a5072ebbfa2de8a4433" have entirely different histories.

2 changed files with 1 additions and 4 deletions

2
net.py
View File

@ -239,7 +239,7 @@ class DepthwiseSeparableConvBlock(nn.Module):
return x return x
class DetailNode(nn.Module): class DetailNode(nn.Module):
def __init__(self,useBlock=1): def __init__(self,useBlock=0):
super(DetailNode, self).__init__() super(DetailNode, self).__init__()
if useBlock == 0: if useBlock == 0:
self.theta_phi = DepthwiseSeparableConvBlock(inp=32, oup=32) self.theta_phi = DepthwiseSeparableConvBlock(inp=32, oup=32)

View File

@ -80,9 +80,6 @@ print(f"Clip gradient norm value: {clip_grad_norm_value}")
print(f"Optimization step: {optim_step}") print(f"Optimization step: {optim_step}")
print(f"Optimization gamma: {optim_gamma}") print(f"Optimization gamma: {optim_gamma}")
# 控制台输入
model_str = input("Model: ")
print(f"Model: {model_str}")
# Model # Model
device = 'cuda' if torch.cuda.is_available() else 'cpu' device = 'cuda' if torch.cuda.is_available() else 'cpu'