Comments (9)
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.
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.
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.
from pixel2meshplusplus.
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.
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?
from pixel2meshplusplus.
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.
Can you please upload the changes to be made in chamfer for reshaping tensor.
from pixel2meshplusplus.
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.
Thanks @walsvid for your valuable suggestions.
from pixel2meshplusplus.
Related Issues (20)
- Some problems about running test part HOT 3
- indices[0,7]= -1 is nor in [0,157] HOT 13
- A problem about running "demo.py" HOT 6
- why uesd the batch_size with default =1 οΌ HOT 1
- about the initial template HOT 4
- whatββs the cm_mat? HOT 2
- indices[3304] = [2, 44, 112] does not index into param shape [3,112,112,32] HOT 5
- Custom input for demo HOT 7
- "ValueError: No variables to save" when loading pre-trained CNN HOT 2
- Question regarding loss regularization
- Running Demo File Shared Libraries issue HOT 4
- How to modify the code if I want to use four or even five views for training. HOT 1
- About the input shape of the model HOT 6
- Run on single image HOT 1
- About /data/demo/cameras.txt HOT 1
- Error when 'make' the Makefile
- About running demo HOT 3
- when will you release the code for Pixel2Mesh++: 3D Mesh Generation and Refinement from Multi-View Images HOT 1
- the dat file of shapenet HOT 3
- Camera Parameters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixel2meshplusplus.