-
Notifications
You must be signed in to change notification settings - Fork 56
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
indices[0,7]= -1 is nor in [0,157] #11
Comments
Hi, @lkf1996 Could you give more complete information such as the output of error messages and the version environment of the program you are using? |
Thanks for ur reply , I used 2080ti, tensorflow-gpu 1.12.0, CUDA 9.0, cudnn7.3 to reproduce the code test part, but I encountered a bug in the middle. I found that the reason was that running on 2080ti would crash, so I used CPU to reproduce . but the new error occured. During handling of the above exception, another exception occurred: Traceback (most recent call last): Caused by op 'GatherV2_21', defined at: InvalidArgumentError (see above for traceback): indices[0,7] = -1 is not in [0, 157) ` I had take much time to solve it , I will appreciate it if you can help me. |
In losses.py , when def laplace_coord , the code"laplace = tf.reduce_sum(tf.gather(vertex,indices),1)," There is "-1" in indices(lape_idx) . But It's not even running here, it has reported an error |
It seems that you use Luckily, the solution is not hard. The minimal code added are as follows:
|
thanks. I had resolved it by change the "-1" to "0" |
Excuse me? I firstly read the code about “Pixel2mesh” , I found a file named “GenerateData” , but it does not apply to this code . Can you share the new way to generatedata? because I want to train my own dataset. |
Hi, @lkf1996 . We use the same method to generate data. All the generate data code have been upload to pixel2mesh repo. |
I don't think change to 0 is correct, you should change to the max index of each stage. 0 is the 1st vertices, and -1 is the dummy vertex for padding which is the 156th, 618th and 2466th vertex in 3 stages. |
Thank you for your reply. I added the 0 vector to the first column and the value of indices by adding "1", so as to avoid the error of "-1". Thank you for your guidance |
Hi, @lkf1996 .
|
thank you for your reply. May I ask what graphics card you use to run this program? I used 2080RTX and had the same problem as the previous one. He used 2080Ti. None of us could run this program under GPU, otherwise the following problems would occur. The following is the link of issue. |
We use TitanXp or 1080Ti with CUDA9 |
I think it should be like this: |
hello! Have you run the train.py successfully? I got a problem "InvalidArgumenrError : indices[0,7]= -1 is nor in [0,157] " when run in "sess.run(model , feed_dict = feed_dict" .
The train data is loaded in this github , It has upset me for many days .
Hope for your reply ``
The text was updated successfully, but these errors were encountered: