see icon indicating copy to clipboard operation
see copied to clipboard

train_fsns.py problem

Open MS-MA opened this issue 6 years ago • 5 comments

In train_fsns.py, to trainer.run(), where does the program jump?

MS-MA avatar Apr 14 '19 15:04 MS-MA

it jumps into the train routine implemented by chainer

Bartzi avatar Apr 15 '19 08:04 Bartzi

Can you tell me the exact location of the program jump? thank you very much @Bartzi

MS-MA avatar Apr 15 '19 11:04 MS-MA

please have a look at the chainer documentation, and I think you will be able to find what you are looking for :wink:

Bartzi avatar Apr 15 '19 13:04 Bartzi

hello Bartzi,I have a new problem about train_fsns.py if i create a learning curriculum,like the follows:

[ { "train":"/home/data/fsns/image/train/train_swap_max2words.csv", "validation":"/home/data/fsns/image/validation/validation_swap_max2words.csv" }, { "train":"/home/data/fsns/image/train/train_swap_3words.csv", "validation":"/home/data/fsns/image/validation/validation_swap_3words.csv" }, { "train":"/home/data/fsns/image/train/train_swap_4words.csv", "validation":"/home/data/fsns/image/validation/validation_swap_4words.csv" }, { "train":"/home/data/fsns/image/train/train_swap_5words.csv", "validation":"/home/data/fsns/image/validation/validation_swap_5words.csv" }, { "train":"/home/data/fsns/image/train/train_swap_6words.csv", "validation":"/home/data/fsns/image/validation/validation_swap_6words.csv" }

]

how should i adjust the attributes like the below in train_fsns.py ?

attributes_to_adjust = [ ('num_timesteps', ['predictor', 'localization_net']), ('num_timesteps', ['predictor', 'recognition_net']), ('num_timesteps', ['lossfun', 'self']), ('num_labels', ['predictor', 'recognition_net']), ]

I am confused,could you give me a case? very thanks

MS-MA avatar Apr 20 '19 04:04 MS-MA

If you are not changing anything else than a train curriculum there is no need for chaning the code at this point. These lines of code are only necessary, because there are sveral pieces of code that need to be adjusted if the dataset is changed, this is just a list of locations where changes need to be made when updating the curriculum, so as long as you did not make any changes to code that deals with attributes that might be changed by a new dataset, you don't need to changes these lines of code.

Bartzi avatar Apr 23 '19 09:04 Bartzi