maxorange / voxel-dcgan Goto Github PK
View Code? Open in Web Editor NEWA deep generative model of 3D volumetric shapes
License: MIT License
A deep generative model of 3D volumetric shapes
License: MIT License
I run into an issue when trying to run your code:
Traceback (most recent call last): File "train.py", line 3, in <module> import model File "/home/jarvis/GoogleDrive/UIUC_Grad/coursework/CS_598-RK/project/voxel-dcgan/model.py", line 3, in <module> import util File "/home/jarvis/GoogleDrive/UIUC_Grad/coursework/CS_598-RK/project/voxel-dcgan/util.py", line 3, in <module> import binvox ImportError: No module named binvox
Is binvox a module that you need to install through pip (I can't seem to find it online)? Or is it a module you wrote that you left out?
Do you have any result of input data and output data, thanks
When I input the folder which is full of binvox format files as input paths,
The when run the code train.py
The system show that:
ValueError: Tried to convert 'reduction_indices' to a tensor and failed. Error: Argument must be a dense tensor: range(0, 1) - got shape [1], but wanted [].
I tried a lot times I have not deal with it
Hi,
I have a question about the input data:
There are complete and incomplete .binvox files set as an Input, right ? If yes, what is ca. the percentage/ amount of this data ?
Thanks a lot !
ValueError: Cannot feed value of shape (64L, 256L, 256L, 256L, 1L) for Tensor u'x0:0', which has shape '(64, 32, 32, 32, 1)'๏ผ
When I built python2.7 architecture and run the code, the system show the error.
Hello there,
As I was going through your code, I was a bit puzzled by the last operation if the discriminator:
From 'model.py' file:
m = tf.matmul(h, self.W['md'])
m = tf.reshape(m, [-1, self.n_kernels, self.dim_per_kernel])
abs_dif = tf.reduce_sum(tf.abs(tf.expand_dims(m, 3) - tf.expand_dims(tf.transpose(m, [1, 2, 0]), 0)), 2)
f = tf.reduce_sum(tf.exp(-abs_dif), 2) + self.b['md']
h = tf.concat(1, [h, f])
y = tf.matmul(h, self.W['h5']) + self.b['h5']
return y
Could you explain to me this operation?
Thank you :)
Hi.
Problems reg. binvox: I still have this two failures when executing the binvox file:
**********************************************************************
File ".../binvox.py", line 29, in __main__
Failed example:
m1.scale
Expected:
41.133000000000003
Got:
41.133
**********************************************************************
File ".../binvox.py", line 60, in __main__
Failed example:
np.all(ms.data[:, np.lexsort(ms.data)] == data_ds[:, np.lexsort(data_ds)])
Expected:
True
Got:
False
**********************************************************************
1 items had failures:
2 of 18 in __main__
***Test Failed*** 2 failures.
Problems when executing train.py:
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/tensor_shape.py", line 741, in as_dimension
return Dimension(value)
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/tensor_shape.py", line 217, in __init__
raise TypeError(
TypeError: Dimension value must be integer or None or have an __index__ method, got value '128.0' with type '<class 'float'>'
Anybody has an idea or knows the solution for these 2 problems ?
I would appreciate it a lot. Thanks !
when I write like you shown in the "How to run the code", like below:
"
import glob
import os
import subprocess
import sys
voxsize = 32
paths = glob.glob("C:/Users/20185290/Desktop/New folder (4)/*.stl")
print ("number of data:", len(paths))
with open(os.devnull, 'w') as devnull:
for i, path in enumerate(paths):
cmd = "binvox -d {0} -cb -e {1}".format(voxsize, path)
ret = subprocess.check_call(cmd.split(' '), stdout=devnull, stderr=devnull)
if ret != 0:
print ("error", i, path)
else:
print (i, path)
"
It do not work, The system shows:
File "C:\Users\20185290\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\subprocess.py", line 957, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
May I know what happen to the system?
When I download the file of binvox on ubuntu and move it to the /usr/local/bin . I can't ues the bash binvox.The error is command not found.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.