Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
daigz1224 committed Jan 18, 2018
1 parent 7aba46e commit 081049c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
results/
4 changes: 4 additions & 0 deletions checkpoints/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- 保存训练过程中的模型
- 预训练模型 [place365](https://github.com/CSAILVision/places365)
- whole_resnet50_places365_python36.pth.tar

5 changes: 5 additions & 0 deletions data/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- [数据集](https://challenger.ai/competition/scene/subject)
- ai_challenger_scene_test_a_20170922
- ai_challenger_scene_train_20170904
- ai_challenger_scene_validation_20170908

2 changes: 1 addition & 1 deletion models/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def resnet152(opt):
return ResNet(model,opt,name='res152')

def resnet365(opt):
model = t.load('checkpoints/whole_resnet50_places365.pth.tar')
model = t.load('checkpoints/whole_resnet50_places365_python36.pth.tar')
# model = tv.models.resnet50()
return ResNet(model,opt,name='res_365')
6 changes: 3 additions & 3 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def plot_many(self, d):
def plot(self, name, y):
x = self.index.get(name, 0)
self.vis.line(Y=np.array([y]), X=np.array([x]),
win=unicode(name),
win=str(name),
opts=dict(title=name),
update=None if x == 0 else 'append'
)
Expand All @@ -38,7 +38,7 @@ class Config:
# test_dir = '/data/image/ai_cha/scene/sl/testa'
# val_dir = '/data/image/ai_cha/scene/sl/val'
# meta_path = '/data/image/ai_cha/scene/sl/scene.pth'
train_dir = '/data/ai_challenger_scene_train_20170904/scene_train_images_20170904'
train_dir = 'data/ai_challenger_scene_train_20170904/scene_train_images_20170904'
test_dir = 'data/ai_challenger_scene_test_a_20170922/scene_test_a_images_20170922'
val_dir = 'data/ai_challenger_scene_validation_20170908/scene_validation_images_20170908'
meta_path = 'scene.pth'
Expand All @@ -47,7 +47,7 @@ class Config:
lr1 = 0
lr2 = 0.0005
lr_decay = 0.5
batch_size = 128
batch_size = 64
max_epoch = 100
debug_file = '/tmp/debugc'
shuffle = True
Expand Down

0 comments on commit 081049c

Please sign in to comment.