-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11bfd77
commit 65adfa9
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#-*- coding: utf-8 -*- | ||
# 64.72% # | ||
import tensorflow as tf | ||
import pandas as pd | ||
import numpy as np | ||
import os, h5py, sys, argparse | ||
import ipdb | ||
import time | ||
import math | ||
import cv2 | ||
import codecs, json | ||
# from tensorflow.python.ops import rnn_cell | ||
from sklearn.metrics import average_precision_score | ||
import pdb | ||
import spacy | ||
from random import seed | ||
import itertools | ||
from numpy import linalg as LA | ||
|
||
tf.reset_default_graph() | ||
random_seed = 320 | ||
np.random.seed(random_seed) | ||
tf.set_random_seed(random_seed) | ||
|
||
triple = json.load(open('/home/liangjic/BMVC/VQA_20170301/vqa_raw_train.json')) | ||
print triple[210716] | ||
for xid in xrange(len(triple)): | ||
if xid % 4 == 0 and triple[xid]['ans'] == 0: | ||
print xid | ||
break | ||
if xid % 4 > 0 and triple[xid]['ans'] == 1: | ||
print xid | ||
break |