Comments (5)
Have you solved the problem of data set generation? Can I ask you for help
from pixel2mesh.
I have the same problem and want to generate.dat file for data set. Have you solved it? Can you share the solution?
from pixel2mesh.
Yes I think I solved it. I wrote myself a short python program that converts the .xyz files into .dat files. You will have to give the program the path to your .xyz file as a command line argument. The program itself uses pickle to convert the .xyz into a .dat file and will drop that .dat file into the same directory where your .xyz file is located.
import pickle
import numpy as np
import sys
def myFunc():
content = []
with open(sys.argv[1], 'r') as f:
for line in f.readlines():
content.append(line.split(' '))
print(content[0][0])
data = []
for i in range(len(content)):
data.append([])
for k in range(len(content[i])):
data[i].append(float(content[i][k]))
output_path = sys.argv[1]
output_path = output_path[:output_path.rfind('/') + 1] + output_path[output_path.rfind('/') + 1:output_path.rfind('.')]
output_path = output_path + ".dat"
print(output_path)
with open(output_path, 'wb') as f:
try:
data = np.array(data)
print(data.shape)
pickle.dump(data, f, 2)
except pickle.PicklingError:
print('Error while reading from object. Object is not picklable')
myFunc()
from pixel2mesh.
Hi, I find the generate_dada.py
also can sample the point from ground truth surface. Do you know the sampling operation difference between generate_dada.py
and 1_sample_points.txt
? I guess the sample in generate_dada.py
is uniform. But if I want to generate the ground truth data in point form to compare with prediction, whether I just need to run the generate_dada.py
? Or do I need to follow the step including 1_sample_points.txt, 2_generate_normal.py, 3_camera_transform.py
?
from pixel2mesh.
Hi, I find the
generate_dada.py
also can sample the point from ground truth surface. Do you know the sampling operation difference betweengenerate_dada.py
and1_sample_points.txt
? I guess the sample ingenerate_dada.py
is uniform. But if I want to generate the ground truth data in point form to compare with prediction, whether I just need to run thegenerate_dada.py
? Or do I need to follow the step including1_sample_points.txt, 2_generate_normal.py, 3_camera_transform.py
?
Hi, have you known the sampling operation difference between generate_dada.py and (1_sample_points.txt, 2_generate_normal.py, 3_camera_transform.py?). They seem to achieve the same function
from pixel2mesh.
Related Issues (20)
- Train on dataset of images
- How do you train this on a own dataset of 3d models? HOT 3
- tensorflow.python.framework.errors_impl.InvalidArgumentError
- How to create our own datasets? HOT 1
- The passed save_path is not a valid checkpoint: Data/checkpoint/gcc.ckpt
- Question about GenerateData HOT 1
- Is 4_make_auxiliary_dat_file.ipynb supposed to generate the same formatted dat files as the ones in the gdrive of shapenet? HOT 2
- One problem about some trick things
- Pixel2Mesh commercial use inquiry
- How to get texture?
- No module named 'layers' HOT 4
- Is the support constant in all shapes(airplane, car, ellipsoid)?
- Intrinsic camera parameters for rendered views
- Ellipsoidal data generation
- Error running Pixel2Mesh in Google Colab: "python2: command not found" HOT 2
- Cannot interpret feed_dict error
- tf_nndistance_so.so not found HOT 2
- training problem
- Weighted chamfer loss and Weighted Edge Length Regularization
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 pixel2mesh.