-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote.txt
More file actions
58 lines (47 loc) · 1.56 KB
/
note.txt
File metadata and controls
58 lines (47 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Baseline
Train a cnn
TODO
Change BN to LN
Change it to conditional version
Procedure
* augment image data
* classify all images with high accuracy (semi-learning using DCGAN?)
* train DCGAN
fairseq preprocess -sourcelang art -targetlang sum \
-trainpref $TEXT/train -validpref $TEXT/valid -testpref $TEXT/test \
-thresholdsrc 3 -thresholdtgt 3 -destdir data-bin/sumdata
fairseq preprocess -sourcelang de -targetlang en \
-trainpref $TEXT/train -validpref $TEXT/valid -testpref $TEXT/test \
-thresholdsrc 3 -thresholdtgt 3 -destdir data-bin/iwslt14.tokenized.de-en
fairseq train -sourcelang art -targetlang sum -datadir data-bin/sumdata \
-model fconv -nenclayer 4 -nlayer 3 -dropout 0.2 -optim nag -lr 0.25 -clip 0.1 \
-momentum 0.99 -timeavg -bptt 0 -savedir trainings/fconv
python3 -m bin.infer \
--tasks "
- class: DecodeText
- class: DumpBeams
params:
file: ${PRED_DIR}/beams.npz" \
--model_dir $MODEL_DIR \
--model_params "
inference.beam_search.beam_width: 5
decoder.class: seq2seq.decoders.ConvDecoderFairseqBS" \
--input_pipeline "
class: ParallelTextInputPipelineFairseq
params:
source_files:
- $TEST_SOURCES" \
> ${PRED_DIR}/predictions.txt
python3 -m bin.infer \
--tasks "
- class: DecodeText" \
--model_dir $MODEL_DIR \
--model_params "
inference.beam_search.beam_width: 1
decoder.class: seq2seq.decoders.ConvDecoderFairseq" \
--input_pipeline "
class: ParallelTextInputPipelineFairseq
params:
source_files:
- $TEST_SOURCES" \
> ${PRED_DIR}/predictions.txt