Code Monkey home page Code Monkey logo

dg-yolo's Introduction

DG-YOLO

This repository contains the code (in PyTorch) for the paper:

TOWARDS DOMAIN GENERALIZATION IN UNDERWATER OBJECT DETECTION Hong Liu, Pinhao Song, Runwei Ding

The code of this repository is based on PyTorch-YOLOv3

Dependencies

  • Python 3.6
  • PyTorch 1.0
  • CUDA9.0 and cuDNN
  • numpy
  • tqdm
  • tensorboardX

Installation

Download pretrained weights

$ cd weights/
$ bash download_weights.sh

Download Datasets

URPC2019: https://drive.google.com/open?id=1n8Rpgx3xF84HO6PXpfPrRtTMtVSuOaBs

Synthetic URPC2019: https://drive.google.com/open?id=1FzIuZJuCHna4Dn_FLBeR5IFztCJBJ6VD

checkpoint: https://drive.google.com/file/d/1n3e9R1zeJjOtNSMpNY0cVsfHqucmTOVe/view?usp=sharing

After downloading all datasets, create URPC2019 document.

$ cd data
$ mkdir URPC2019

It is recommended to symlink the dataset root to $DG-YOLO/data/URPC2019.

DG-YOLO
├── data
│   ├── URPC2019
│   │   ├── type1
│   │   ├── type2
│   │   ├── type3
│   │   ├── type4
│   │   ├── type5
│   │   ├── type7
│   │   ├── val_type1
│   │   ├── val_type2
│   │   ├── val_type3
│   │   ├── val_type4
│   │   ├── val_type5
│   │   ├── val_type6
│   │   ├── val_type7
│   │   ├── val_type8
│   │   ├── train2017
│   │   ├── val2017

Train

$ python DG_train.py --pretrained_weights ./weights/darknet53.conv.74 --batch_size 8

Test

Test in original validation set

$ python test.py --weights_path <path/to/checkpoints> --batch_size 32

Test in type8 validation set

$ python test.py --weights_path <path/to/checkpoints> --batch_size 32 --augment True

dg-yolo's People

Contributors

mousecpn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.