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

Train on a new model: mesh_vertex_embeddings are all zeros in my model #5182

Closed
Haozong-Zeng opened this issue Dec 16, 2023 · 2 comments
Closed
Labels
invalid/unrelated unrelated to this project or invalid type of issues needs-more-info More info is needed to complete the issue

Comments

@Haozong-Zeng
Copy link

I am using DensePose CSE for capturing poses from videos and guiding a mesh model. My goal is to use my own mesh and the corresponding dataset to train a DensePose CSE model.

I formated the dataset & annotation correctly, and successfully registered the mesh by providing the vertices, geometric distances, symmetry, etc. information. The only thing I missed is the INIT_FILE which contains 'eigenvalues', 'features', & 'baricel_area'. My trained model seems to work well on providing the

E (tensor [1, D, H, W]): D-dimensional embedding vectors for every point of the default-sized box

&

S (tensor [1, 2, H, W]): 2-dimensional segmentation mask for every point of the default-sized box

However, when I tried to find the closest vertices, I noticed that the

mesh_vertex_embeddings (tensor [N, D]): vertex embeddings for a chosen mesh N is the number of vertices in the mesh, D is feature dimensionality

is a all-zeros tensor and thus I could not calculate the squared_euclidean_distance_matrix.

When training the model, I received the following warning:

Some model parameters or buffers are not found in the checkpoint:
roi_heads.embedder.embedder_my_mesh.{embeddings, features}

  1. Full changes you made:
    _BASE_: "Base-DensePose-RCNN-FPN.yaml" MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/a_checkpoint.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 1 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "my_mesh": TYPE: vertex_feature NUM_VERTICES: n FEATURE_DIM: 256 FEATURES_TRAINABLE: True (also try False) IS_TRAINABLE: True INIT_FILE: ""

  2. What exact command you run:
    The train_net.py script in the tutorial

@github-actions github-actions bot added the needs-more-info More info is needed to complete the issue label Dec 16, 2023
Copy link

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template.
The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

Copy link

Requested information was not provided in 7 days, so we're closing this issue.

Please open new issue if information becomes available. Otherwise, use github discussions for free-form discussions.

@github-actions github-actions bot added the invalid/unrelated unrelated to this project or invalid type of issues label Dec 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid/unrelated unrelated to this project or invalid type of issues needs-more-info More info is needed to complete the issue
Projects
None yet
Development

No branches or pull requests

1 participant