In deepreg/predict, there is no reliance on a config file - instead, it is picked up from the ckpt path and assumes a similar file structure like:
This seems like a fragile patch that might benefit from modifying such that users can pass their own config file? Or is there some reason I don't understand for the design choice?
First I would like to understand the above, and if needs corrected we can assign/create a better way to access config?
Please delete options that are not relevant.
N/A
Users pass config files related to their checkpoints manually such that the config file isn't taken from ckpt path.
Currently, the tests for this pass when running predict and train but I'm not entirely sure about the functionality of taking the path for config from ckpt string (it seems a bit strict).
In init(config_path, log_dir, ckpt_path): the config will be copied into the log folder, so that in the prediction it will take the backup config to make sure the config is consistent.
I didn't ask the predict to take a config as input as it might be inconsistent
I'm not sure I understand where that init line of code comes from, can you provide a link?
@YipengHu Can you change the refs for the commits? They point to the wrong ticket.
@YipengHu Can you change the refs for the commits? They point to the wrong ticket.
I noticed too - really embarrassing, was not sure how to do it...
Also @mathpluscode what do you mean by init(config) here: "In init(config_path, log_dir, ckpt_path): the config will be copied into the log folder, so that in the prediction it will take the backup config to make sure the config is consistent."?
Can you point me to the source code? That way I might understand better
@YipengHu I think you have to force push, which could be quite troublesome to everyone else working on this fork, so don't worry about it. Ideally we push to develop on forks so if there is some sort of problem like this it doesn't change the base repo, or can just force push on that repo which doesn't affect this one until merge, or create a new branch to redevelop with the right messages.
sorry for the delay, so if i understand correctly, we want the prediction to accept a configuration file separately,
what i did now, as you mentioned, is assuming a relatively strict structure of the code, which is consistent with the training script
what we can do is
another method is
@mathpluscode @NMontanaBrown is it still a relevant issue? better to close this and open new one with specific tasks.
ok, i think what @NMontanaBrown wanted is the option to allow to not use the default config, it should be done easily.
will do it tonight, then we close this