Our code supports the following dataset:
If you want to use your own dataset, please organize your data in the following structure.
RootDir
└───Domain1Name
│ └───Class1Name
│ │ file1.jpg
│ │ file2.jpg
│ │ ...
│ ...
└───Domain2Name
| ...
And then, modifty util/util.py
to contain the dataset.
- Modify the file in the scripts
- The main script file is
train.py
, which can be runned by usingrun.sh
fromscripts/run.sh
:cd scripts; bash run.sh
.
It is easy to design your own method following the steps:
-
Add your method (a Python file) to
alg/algs
, and add the reference to it in thealg/alg.py
-
Modify
utils/util.py
to make it adapt your own parameters -
Midify
scripts/run.sh
and execuate it
Great thanks to DeepDG. Our code is based on this project and extends.