Skip to content
New issue

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

y_true==1 in PadimSVDD #14

Open
rishabh-akridata opened this issue Aug 6, 2024 · 2 comments
Open

y_true==1 in PadimSVDD #14

rishabh-akridata opened this issue Aug 6, 2024 · 2 comments

Comments

@rishabh-akridata
Copy link

Hi @Pangoraw,
What is y_true ==1 in PadimSVDD? Does 1 mean normal image and 0 means anomalous?

pbar = tqdm(range(n_epochs))
        for epoch in pbar:
            loss_epoch = 0
            n_batches = 0
            for imgs, y_true in train_dataloader:
                imgs = imgs.to(self.device)
                y_true = y_true.to(self.device)
                imgs = imgs[y_true == 1]

                optimizer.zero_grad()

Thanks

@Pangoraw
Copy link
Owner

Pangoraw commented Aug 6, 2024

i am not sure if padimsvdd.pretrain() does something actually. I don't recall exactly what it meant to do

@rishabh-akridata
Copy link
Author

Okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants