Skip to content

ConvTasNet Saving / Loading Model #563

Answered by cemox35
cemox35 asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I think, I need a use System instead ConvTasNet. However, I got another error.

This is my code:
`MODEL_PATH = ["lightning_logs/version_53/checkpoints/epoch=4-step=1444.ckpt"] # write model path

i = 5

train_loader, val_loader = load_data()

model = ConvTasNet(
    n_src=SPEAKER,
    n_filters=N[i % 3],
    kernel_size=L[i % 3],
    bn_chan=B[i % 3],
    skip_chan=Sc[i % 3],
    hid_chan=H[i % 3],
    conv_kernel_size=P[i % 3],
    n_blocks=X[i % 3],
    n_repeats=R[i % 3],
    sample_rate=SAMPLE_RATE,
    fb_name=ENCODER[i]
).double()

if torch.cuda.is_available():
    device = "cuda"
else:
    device = "cpu"
print(f"Using {device}")

model.to(device, non_blocking=True)

loss = PITLos…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@cemox35
Comment options

@mpariente
Comment options

@cemox35
Comment options

@mpariente
Comment options

@cemox35
Comment options

Comment options

You must be logged in to vote
1 reply
@cemox35
Comment options

Answer selected by cemox35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants