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

Mask values are all 0, loss never change #10

Open
TalBarami opened this issue Oct 22, 2022 · 0 comments
Open

Mask values are all 0, loss never change #10

TalBarami opened this issue Oct 22, 2022 · 0 comments

Comments

@TalBarami
Copy link

TalBarami commented Oct 22, 2022

Hello,
I have tried to create a mask for an example of my data.
The data itself has been created from the skeleton joint coordinates of a human body. Its shape is of size TxN, where T is the length of the time series and N is the feature (Either x/y/z locations of a specific joint j).
For this reason, the size of each sample is relatively big, approximately 200x300.
My model predicts whether the individual presented in the scene performs some type of action.
I have tried to tune the hyperparameters as explained here, but it didn't change. I have managed to play with the loss values so if the mask is large enough the loss will be higher, but it seems like the task isn't optimized - as the losses that follow remain relatively the same.

pert = GaussianBlur(device, sigma_max=80)
mask = Mask(pert, device)
mask.fit(flat, lambda p: posec3d(update_pert(p, X)), target=torch.tensor([0, 1], device=device),
             loss_function=cross_entropy, keep_ratio=0.1, size_reg_factor_init=0.01)
mask.plot_mask()

Any thoughts?

Thanks in advance,
Tal

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

1 participant