Skip to content

Commit c5018e0

Browse files
committed
Summary of results
1 parent 9ab00a3 commit c5018e0

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,9 @@ Each image has background ones from CIFAR 10 training data set as the paper.
4848

4949
### Results
5050
The video frame is also 32x32, thus that cannot be easily recognized, however based on a big object, orbit system working is checked in the video.
51+
52+
True
53+
![alt tag](https://github.com/jaesik817/visual-interaction-networks_tensorflow/blob/master/figures/true.gif)
54+
55+
Modeling
56+
![alt tag](https://github.com/jaesik817/visual-interaction-networks_tensorflow/blob/master/figures/modeling.gif)

constants.pyc

-5 Bytes
Binary file not shown.

figures/modeling.gif

5.68 KB
Loading

figures/true.gif

4.08 KB
Loading

gravity_vin.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ def train():
193193
ts_img=np.zeros((1,int(frame_num),FLAGS.height,FLAGS.weight,FLAGS.col_dim),dtype=float);
194194
for i in range(1):
195195
for j in range(int(frame_num)):
196-
ts_img[i,j]=mpimg.imread(img_folder+"train/"+str(i)+"_"+str(j)+'.png')[:,:,:FLAGS.col_dim];
196+
ts_img[i,j]=mpimg.imread(img_folder+"test/"+str(i)+"_"+str(j)+'.png')[:,:,:FLAGS.col_dim];
197197
ts_data=np.zeros((1,int(frame_num),FLAGS.No*5),dtype=float);
198198
for i in range(1):
199-
f=open(data_folder+"train/"+str(i)+".csv","r");
199+
f=open(data_folder+"test/"+str(i)+".csv","r");
200200
ts_data[i]=[line[:-1].split(",") for line in f.readlines()];
201201

202202
# reshape img and data
@@ -226,9 +226,9 @@ def train():
226226
"""
227227

228228
# Saving
229-
print("Video Recording");
230-
make_video(xy_origin,"true"+str(time.time())+".mp4");
231-
make_video(xy_estimated,"modeling"+str(time.time())+".mp4");
229+
#print("Video Recording");
230+
#make_video(xy_origin,"true"+str(time.time())+".mp4");
231+
#make_video(xy_estimated,"modeling"+str(time.time())+".mp4");
232232
print("Image Making");
233233
make_image2(xy_origin,img_folder+"results/","true");
234234
make_image2(xy_estimated,img_folder+"results/","modeling");

physics_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ def gen_make(n_body,orbit,img_folder,data_folder,prefix):
190190
xy=data[:,:,1:3];
191191
make_image(xy,img_folder+"test/",str(0),bg_img);
192192
make_file(data,data_folder+"test/",str(0));
193-
make_video(xy,"test.mp4");
193+
#make_video(xy,"test.mp4");

0 commit comments

Comments
 (0)