Code Monkey home page Code Monkey logo

pix2vox's People

Contributors

maxorange avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pix2vox's Issues

TypeError: 'NoneType' object is not iterable

/home/duan/anaconda3/envs/venv/lib/python2.7/site-packages/qdarkstyle/init.py:181: FutureWarning: load_stylesheet() will not receive pyside parameter in version 3. Set QtPy environment variable to specify the Qt binding insteady.
FutureWarning
Traceback (most recent call last):
File "/home/duan/pix2vox/ui/gui_main.py", line 115, in
slider.valueChanged.connect(lambda value, j=int(index): self.opt_engine.set_label(float(value)/100, j))
File "/home/duan/pix2vox/opt/constrained_opt.py", line 59, in set_label
self.update_voxel_model()
File "/home/duan/pix2vox/opt/constrained_opt.py", line 42, in update_voxel_model
self.preprocess_constraints()
File "/home/duan/pix2vox/opt/constrained_opt.py", line 35, in preprocess_constraints
color_old, edge_old = self.constraints
TypeError: 'NoneType' object is not iterable

I don‘t know whether it is caused by the data?

Parameter/Checkpoint Compatability and Discriminator Network

Hi @maxorange, I am a Computer Science student at USC taking a class on deep learning. For my final project, I am trying to find a technique to color a 3D model given an image or texture. I found your github repos, esp. this one, super useful resource so far towards my project and going to credit and reference you all over my final deliverables. Thank you for the super thorough implementation.

However, I am having a few issues with this repo currently. Here they are:

  1. The parameters in the checkpoint file don't load for newer versions of TensorFlow
    OutOfRangeError (see above for traceback): Read less bytes than requested [[Node: save_3/RestoreV2_53 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_3/Const_0, save_3/RestoreV2_53/tensor_names, save_3/RestoreV2_53/shape_and_slices)]] [[Node: save_3/RestoreV2_52/_43 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_243_save_3/RestoreV2_52", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]()]]

I tried loading the meta file and clearing devices too before restoring the data too and that did not seem to help.

  1. I decided to go about retraining the stacked gan model (because I'll have to modify it and figure out how to be trained towards solving my problem anyways). I was looking for the discriminator network and I couldn't find it! I was wondering if you had any sample code that shows how you trained the network. Let me know if you could send me an email at [email protected] if you wanted to keep communication for this in a different place (since this roadblock not so much of an issue with the code as the first one). I am going to see if I can somehow use the discriminator in your DCGAN implementation but let me know if you had better suggestions over email or through this issue.

Best, Aditya

OutOfRangeError (see above for traceback): Read less bytes than requested

Thanks for your awesome code share!

Recently I do some research on 3d construction and find your great code in github,but when I run the demo,some error occur.just like #2,all the output is here:

OutOfRangeError (see above for traceback): Read less bytes than requested
	 [[Node: save/RestoreV2_53 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_53/tensor_names, save/RestoreV2_53/shape_and_slices)]]

I can find sgan_model.ckpt.data-00000-of-00001 ,sgan_model.ckpt.meta and
sgan_model.ckpt.index in param folder,but the size of them is very small:

4.0K	sgan_model.ckpt.data-00000-of-00001
216K	sgan_model.ckpt.meta
4.0K	sgan_model.ckpt.index

I run the code in Ubuntu 14.04 with tensorflow 1.5.0 in Python3.4,I solve all the dependent libraries and grammar conflict between py2 and py3 ,but still fail to run the code.It is indeed double happiness for me to get your help,thanks a lot!

Fail to reload the checkpoint file

Hi,
I am very interested in your project about the 3d shape synthesis. So I hope to run your code.

I use MacBook to run your code, and when I reload the model parameters, it poses OutOfRangeError.
OutOfRangeError (see above for traceback): Read less bytes than requested
[[Node: save/RestoreV2_4 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2_4/tensor_names, save/RestoreV2_4/shape_and_slices)]]

I am not know how I can do with this error, and I am not sure whether the version of tensorflow would lead to this problem.

Out of range: Read less bytes than requested

Hello,

This work is very interesting! However, when I run the code ("python application.py"), it gets some errors like "Out of range: Read less bytes than requested", caused by "model = sgan.Model("params/sgan_model.ckpt")". Is the params model given right?

Thanks.

Failed to load module "canberra-gtk-module"

Failed to load module "canberra-gtk-module"
/home/duan/anaconda3/envs/venv/lib/python2.7/site-packages/qdarkstyle/init.py:181: FutureWarning: load_stylesheet() will not receive pyside parameter in version 3. Set QtPy environment variable to specify the Qt binding insteady.
FutureWarning
2018-10-31 19:36:32.905967: E tensorflow/stream_executor/cuda/cuda_dnn.cc:343] Loaded runtime CuDNN library: 7.1.4 but source was compiled with: 7.2.1. CuDNN library major and minor version needs to match or have higher minor version in case of CuDNN 7.0 or later version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration.

my platform :Ubuntu18.04+anaconda+Tensorflow-gpu+cuda9.0+cudnn7.1.4
how can I solve these problems?Thanks!

model/sgan.py", line 154, in edge c = conv2d(edge, [4, 4, nc, nf], 'h1', bias=True) NameError: name 'conv2d' is not defined

i modified the script to run on PyQt5 instead of PyQt4
my TensorFlow version is 1.1.0 inside python 3.6, however i am encountering the bellow issue:
any suggestions will be appreciated

`python application.py
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:13: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:15: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2020-09-04 17:35:49.652680: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2020-09-04 17:35:49.675335: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3493490000 Hz
2020-09-04 17:35:49.676389: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55d9a11d3230 executing computations on platform Host. Devices:
2020-09-04 17:35:49.676412: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): ,
WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:19: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:153: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.

Traceback (most recent call last):
File "application.py", line 12, in
model = sgan.Model("params/sgan_model.ckpt")
File "/home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py", line 16, in init
self.build_model(model_path)
File "/home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py", line 28, in build_model
edge = enc.edge(self.edge, self.train, self.n_cls)
File "/home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py", line 154, in edge
c = conv2d(edge, [4, 4, nc, nf], 'h1', bias=True)
NameError: name 'conv2d' is not defined
`

Fail to get Voxel model

The problem I am getting is I don't get the reconstruction in my output window.
It is to be noted that drawing and painting are working properly. but corresponding 3D model is not generated.
provide some help!

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.