Code Monkey home page Code Monkey logo

Comments (9)

walsvid avatar walsvid commented on June 13, 2024

Hi, @bharadwajdhornala. The main compatibility problem is that the version provided by tf_nndistance, namely Chamfer Loss, is the GPU version. If you want to use it on CPU, you need to use Chamfer Loss of CPU version. I will upload the Loss code of CPU version to the external/tf_nndistance_cpu.py, please import this library.

from pixel2meshplusplus.

bharadwajdhornala avatar bharadwajdhornala commented on June 13, 2024

Can you upload the tf_nndistance_cpu_so.so file so that I can continue my further execution. Or can you please guide for the demo.py execution using CPU.

from pixel2meshplusplus.

bharadwajdhornala avatar bharadwajdhornala commented on June 13, 2024

I got an error in the below
File "/home/bharadwaj/Pixel2MeshPlusPlus/external/tf_nndistance_cpu.py", line 17, in nn_distance_cpu
pc1_expand_tile = tf.tile(tf.expand_dims(pc1,2), [1,1,M,1])
TypeError: Failed to convert object of type <class 'list'> to Tensor. Contents: [1, 1, None, 1]. Consider casting elements to a supported type.

Please suggest.
error

from pixel2meshplusplus.

walsvid avatar walsvid commented on June 13, 2024

Hi @bharadwajdhornala , tf_nndistance_cpu.py do not require compile. I think and the error may related to unknown tensor shape for placeholder, so I have modified the code of cpu version chamfer loss. For now, you do not need to expand dimension of batch_size before calling loss function, and it also should fix the bug of None tensor size.

Do let me know if you have any other questions.

from pixel2meshplusplus.

bharadwajdhornala avatar bharadwajdhornala commented on June 13, 2024

Thanks @walsvid , When I run the code, I got this error
pc1_expand_tile = tf.tile(tf.expand_dims(pc1,2), [1,1,M,1])
ValueError: Shape must be rank 5 but is rank 4 for 'Tile' (op: 'Tile') with input shapes: [1,1,1,?,3], [4]. So, I have tried to increase rank 4 to 5,and it worked, it gave an obj file. But when I run it another time , its getting Killed. If I want to replace plane images with any other images, should I change the cameras.txt also?
2

from pixel2meshplusplus.

walsvid avatar walsvid commented on June 13, 2024

That may related to unnecessary expan dims, may be after compute the CPU version chamfer, you should squeeze or reshape the tensor to remove the unnecessary dimensions.

Yes, if the images changed the camera parameter should also be changed. All the camera data are provided for shapenet.

from pixel2meshplusplus.

bharadwajdhornala avatar bharadwajdhornala commented on June 13, 2024

Can you please upload the changes to be made in chamfer for reshaping tensor.

from pixel2meshplusplus.

walsvid avatar walsvid commented on June 13, 2024

I mean you should check your code for extra expand dimension operations to make sure the output is correct. At present, we can only guarantee that the GPU version is definitely correct. Whether there is bugs with the CPU version, you need to check it by yourself first. I will check it later when I have time.

from pixel2meshplusplus.

bharadwajdhornala avatar bharadwajdhornala commented on June 13, 2024

Thanks @walsvid for your valuable suggestions.

from pixel2meshplusplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.