hobbitlong / shape2prog Goto Github PK
View Code? Open in Web Editor NEW[ICLR 2019] Learning to Infer and Execute 3D Shape Programs
License: BSD 2-Clause "Simplified" License
[ICLR 2019] Learning to Infer and Execute 3D Shape Programs
License: BSD 2-Clause "Simplified" License
For the Rendernet, I assumed each part of the program would go through the LSTM sequentially, but it looks each batch only goes through the LSTM once:
Line 394 in 44ebb0c
Plus, the hidden state is reset with each forward pass.
Maybe I'm missing something, but why use an LSTM in a nonrecurrent manner? I guess the gates could still work but I feel like it would be less effective that way.
Edit: Nevermind, for some reason my only experience with nn.LSTM has been passing the sequence in one part at a time in a for loop. But the documentation indicates you can pass the sequence in all at once.
Hi,
Are there some ways to visualize the generate shape in h5 format or the program after running the testing script?
Hi,
Very good work! I am now trying to run the test script as suggested, but it failed. Below are some steps to run, could you please help advise?
Install
a. I use the docker with Ubuntu 16.04, CUDA 9.0, CUDNN 7.0
b. I use conda to create the environment:
conda create -n shapeprog python=3.5
activate env
pip install -r requirements.txt
Run the test script
a. download data as suggested
b. run the script: CUDA_VISIBLE_DEVICES=0 python test.py --model ./model/program_generator_GA_chair.t7 --data ./data/chair_testing.h5 --save_path ./output/chair/ --save_prog --save_img
Error message
========= arguments =========
Test: epoch 0 batch 0/32, time=0.392
Test: epoch 0 batch 10/32, time=0.219
Test: epoch 0 batch 20/32, time=0.218
Test: epoch 0 batch 30/32, time=0.219
Mean IoU: 0.560
Traceback (most recent call last):
File "test.py", line 177, in
run()
File "test.py", line 160, in run
out.write(program)
UnicodeEncodeError: 'ascii' codec can't encode character '\xb0' in position 186: ordinal not in range
I have tried python 3.6, it gives the same error.
shape2prog/programs/program_table_1.py
Line 14 in 44ebb0c
Hi, I'm trying to use your synthesized data, and I'm confused what does param d
means here? I didn't find its appearance in function body.
In train_program_generator.py, during validation, if we set gen_shape=True, we actually render shapes on step level, rather than block level, I am wondering if this is a bug?
When I try to run download.sh, the connection times out with the wget commands. Trying to access the project page via web browser results in a timeout as well. Any idea if that can be fixed?
Looks like page and downladables are back up. Thanks!
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.