Skip to content

Commit 7a794dc

Browse files
authored
Merge pull request CSAILVision#53 from CSAILVision/hang-dev
minor re-orgnization
2 parents fa16a37 + c21599b commit 7a794dc

File tree

6 files changed

+3
-10
lines changed

6 files changed

+3
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
__init__.py
21
*.pyc
32

43
ckpt/

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ IMPORTANT: We use our self-trained base model on ImageNet. The model takes the i
9494
<tr>
9595
<td rowspan="2"><b>UperNet-101</b></td>
9696
<td>No</td><td>41.98</td><td>80.63</td><td>61.34</td>
97-
<td rowspan="2">2.5 * 25 = 50.0 hours</td>
97+
<td rowspan="2">2.5 * 25 = 62.5 hours</td>
9898
</tr>
9999
<tr>
100100
<td>Yes</td><td>42.66</td><td>81.01</td><td>61.84</td>
@@ -115,11 +115,6 @@ The code is developed under the following configurations.
115115

116116
*Warning:* We don't support the outdated Python 2 anymore. PyTorch 0.4.0 or higher is required to run the codes.
117117

118-
As PyTorch 0.4.0 is not officially released yet. We suggest running in a separate conda environment, build PyTorch from source, or install the following PyTorch package:
119-
```bash
120-
conda install -c ostrokach-forge pytorch=0.4.0
121-
```
122-
123118
## Quick start: Test on an image using our trained model
124119
1. Here is a simple demo to do inference on a single image:
125120
```bash

models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .models import ModelBuilder, SegmentationModule

models.py renamed to models/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import torch
22
import torch.nn as nn
33
import torchvision
4-
import resnet
5-
import resnext
4+
from . import resnet, resnext
65
from lib.nn import SynchronizedBatchNorm2d
76

87

@@ -531,4 +530,3 @@ def forward(self, conv_out, segSize=None):
531530
x = nn.functional.log_softmax(x, dim=1)
532531

533532
return x
534-
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)