Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto3d Add function to generate the shell scripts which can run separately. #5747

Closed
AHarouni opened this issue Dec 14, 2022 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@AHarouni
Copy link

Is your feature request related to a problem? Please describe.
Currently Auto3d generates a markdown telling you what command to run if you want to run a single network architecture
it would be nice to generate a bash script directly so user can directly run it

As a work around I go into the code and use the private function
cmd, devices_info = algo._create_cmd(train_param)
instead simply create the bash script to export cuda device=device_info then run the cmd as
(time $cmd )| tee log.txt

@Nic-Ma Nic-Ma added the enhancement New feature or request label Dec 15, 2022
@myron
Copy link
Collaborator

myron commented Dec 15, 2022

thank you, are you trying to run a single algo?

you can simply call (from any generated algo folder)
python sripts/train.py run --config_file=configs/hyper_parameters.py
or for multigpu
torchrun sripts/train.py run --config_file=configs/hyper_parameters.py

the device_info is not needed (it's only to support running from notebooks).
the scripts folder already has train.py, eval.py, infer.py, if we add ".sh" one-liner aliases of these, it will a lot of files in the scripts folder

@wyli
Copy link
Contributor

wyli commented Aug 10, 2023

@wyli wyli closed this as completed Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants