Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TypeError in cuda_gridsample.py during test script execution #16

@Chris004869

Description

@Chris004869

Environment Information:
• OS: Ubuntu (specify version, e.g., 22.04)
• Python Version: 3.9
• PyTorch Version: 2.0.1
• CUDA Version: 11.7
• GCC Version: 11.4.0
• G++ Version: 11.4.0
• PyTorch3D Version: 0.7.6 (if applicable)
Issue Description: Encountering a TypeError when trying to run the test script test.py. The command used was:
python test.py --network=./model/deep_fashion.pkl --pose_dist=./data/dp_pose_dist.npy --output_path './result/deepfashion' --res=512 --truncation=0.7 --number=100 --type=gen_samples
The error message points to the cuda_gridsample.py file, with the specific error:
TypeError: 'tuple' object is not callable
This error occurs during the execution of a PyTorch custom CUDA operation, specifically at line 47 of cuda_gridsample.py.
Troubleshooting Steps Attempted:

  1. Verified that the environment meets the project's documentation requirements.
  2. Reinstalled all dependencies in a new Conda environment.
  3. Checked compatibility between PyTorch and CUDA versions.
  4. Attempted compilation with different versions of GCC and G++.
    Additional Information:
    • Any other relevant configuration and environmental information.
    • List any other solutions that were attempted.
    I suspect this may be an environment configuration issue, but still encounter this error after setting up according to the project documentation. I would appreciate any guidance and help, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions