Skip to content

Commit

Permalink
rename datasets directory to avoid import conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiOno-sony committed Dec 19, 2018
1 parent 55cbb44 commit 53c579c
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 148 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
*.npy
*.pyc
*~
.ipynb_checkpoints/
.ipynb_checkpoints/
dump_feats/
logs/
release/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
178 changes: 66 additions & 112 deletions notebooks/demo.ipynb

Large diffs are not rendered by default.

44 changes: 12 additions & 32 deletions notebooks/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"LOCAL_PATH = '../'\n",
"if LOCAL_PATH not in sys.path:\n",
" sys.path.append(LOCAL_PATH)\n",
"from common.tf_layer_utils import *\n",
"from datasets import *\n",
"from mydatasets import *\n",
"from det_tools import *\n",
"MODEL_PATH = '../models/'\n",
"if MODEL_PATH not in sys.path:\n",
Expand Down Expand Up @@ -76,9 +74,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"yfcc_dir = '../release/outdoor_examples/'\n",
Expand Down Expand Up @@ -113,9 +109,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"photos1, photos2, depths1, depths2, valid_masks1, valid_masks2, c2Tc1s, c1Tc2s, c1Tws, c2Tws, Ks1, Ks2, thetas1, thetas2, inv_thetas1, inv_thetas2, theta_params = next_batch\n",
Expand Down Expand Up @@ -145,9 +139,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"tfconfig = tf.ConfigProto()\n",
Expand All @@ -159,9 +151,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"fetch_dict = {\n",
Expand Down Expand Up @@ -235,9 +225,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"scannet_dir = '/cvlabdata1/home/ono/datasets/scannet/dataset/all/valid' # set your own path\n",
Expand Down Expand Up @@ -283,9 +271,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"photos1, photos2, depths1, depths2, valid_masks1, valid_masks2, c2Tc1s, c1Tc2s, c1Tws, c2Tws, Ks1, Ks2, thetas1, thetas2, inv_thetas1, inv_thetas2, theta_params = next_batch\n",
Expand Down Expand Up @@ -315,9 +301,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"tfconfig = tf.ConfigProto()\n",
Expand All @@ -329,9 +313,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"fetch_dict = {\n",
Expand Down Expand Up @@ -362,9 +344,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": []
}
Expand All @@ -385,7 +365,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.5"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion run_lfnet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import os
import sys
Expand All @@ -9,7 +10,7 @@
from tqdm import tqdm
import pickle

from datasets import *
from mydatasets import *

from det_tools import *
from eval_tools import draw_keypoints
Expand Down
6 changes: 4 additions & 2 deletions train_lfnet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# Self Supervised Joint Training for Keypoints Detector & Descriptor

from __future__ import print_function
Expand All @@ -15,7 +17,7 @@
if LOCAL_PATH not in sys.path:
sys.path.append(LOCAL_PATH)

from datasets import *
from mydatasets import *
# from datasets.scenenet import SceneNetPairwiseDataset
# from datasets.se3dataset import SE3PairwiseDataset

Expand Down Expand Up @@ -1199,4 +1201,4 @@ def overwrite_config(config):
config.aug_max_degree = 45
print('Kill rot_aug because aug_max_degree=0')

main(config)
main(config)

0 comments on commit 53c579c

Please sign in to comment.