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

TypeError: Failed to convert object of type <class 'list'> to Tensor. #1070

Open
Bhavesh-Joshi opened this issue Dec 28, 2020 · 4 comments
Open
Labels
bug Something isn't working looking into it

Comments

@Bhavesh-Joshi
Copy link

Bhavesh-Joshi commented Dec 28, 2020

Describe the bug
An error occurred while saving model with method save_savedmodel

TypeError: Failed to convert object of type <class 'list'> to Tensor. Contents: [None, -1]. Consider casting elements to a supported type.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://gist.github.com/Bhavesh-Joshi/4db376e4aa6a2ef808c4e54618acc987#file-vqa_train-py'
  2. Run vqa_train.py
  3. See an error

Expected behavior
The model should be saved.

Environment :

  • OS: Ubuntu
  • Version 20.04.1 LTS
  • Python version 3.6
  • Ludwig version 0.3

Additional context
Just want to add one scenario which I observed is the error only occurred when I train the model with the image dataset. With another kind of data like text, numbers it works fine.

@w4nderlust
Copy link
Collaborator

Thanks @Bhavesh-Joshi will look into it.

@jimthompson5802
Copy link
Collaborator

@Bhavesh-Joshi I wanted to follow-up with you re: the error you encountered. First thank for the information you provided. Using that information I was able to receate the error you are seeing. Although I'm still doing research into root cause to figure out a fix, I wanted to provide you a quick status update.

Lastly, thank you for taking the time to report the issue and helping us improve Ludwig.

@jimthompson5802
Copy link
Collaborator

@Bhavesh-Joshi I forgot to ask in the previous posting, if it is possible to get a copy of the image you used Antenna.jpg?

@jimthompson5802 jimthompson5802 added the waiting for answer Further information is requested label Jan 12, 2021
@Bhavesh-Joshi
Copy link
Author

Antenna

Thanks for the update the @jimthompson5802. Please find the attached Antenna.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working looking into it
Projects
None yet
Development

No branches or pull requests

3 participants