Commit db4f3f1b authored by Gunho Park's avatar Gunho Park
Browse files

Internal chnage

parent 78c43ef1
...@@ -3,7 +3,7 @@ runtime: ...@@ -3,7 +3,7 @@ runtime:
mixed_precision_dtype: 'float32' mixed_precision_dtype: 'float32'
num_gpus: 8 num_gpus: 8
task: task:
init_checkpoint: '/home/gunho1123/ckpt/ckpt_encoder_wbias01' init_checkpoint: 'gs://cloud-basnet-checkpoints/basnet_encoder_imagenet/ckpt-340306'
init_checkpoint_modules: 'backbone' init_checkpoint_modules: 'backbone'
train_data: train_data:
dtype: 'float32' dtype: 'float32'
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# ============================================================================== # ==============================================================================
""" """Evaluation metrics for BASNet.
The MAE and maxFscore implementations are a modified version of The MAE and maxFscore implementations are a modified version of
https://github.com/xuebinqin/Binary-Segmentation-Evaluation-Tool https://github.com/xuebinqin/Binary-Segmentation-Evaluation-Tool
......
...@@ -55,7 +55,6 @@ class BASNetLoss: ...@@ -55,7 +55,6 @@ class BASNetLoss:
total_loss = total_loss / len(levels) total_loss = total_loss / len(levels)
return total_loss return total_loss
def _iou_loss(self, sigmoids, labels): def _iou_loss(self, sigmoids, labels):
total_iou_loss = 0 total_iou_loss = 0
...@@ -66,7 +65,3 @@ class BASNetLoss: ...@@ -66,7 +65,3 @@ class BASNetLoss:
total_iou_loss += 1-IoU total_iou_loss += 1-IoU
return total_iou_loss return total_iou_loss
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
# limitations under the License. # limitations under the License.
# ============================================================================== # ==============================================================================
# Import libraries
import tensorflow as tf import tensorflow as tf
from official.vision.beta.projects.basnet.modeling.layers import nn_blocks from official.vision.beta.projects.basnet.modeling.layers import nn_blocks
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment