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

FileNotFoundError: [Errno 2] No such file or directory: 'results/Huggy/configuration.yaml' #530

Closed
qboy21 opened this issue May 17, 2024 · 1 comment

Comments

@qboy21
Copy link

qboy21 commented May 17, 2024

Describe the bug

No configuration.yaml file for results found and unable to save trained model to HF.
1
!mlagents-push-to-hf --run-id="HuggyTraining" --local-dir="./results/Huggy" --repo-id="ThomasSimonini/ppo-Huggy" --commit-message="Huggy"

[INFO] This function will create a model card and upload your HuggyTraining into HuggingFace Hub. This is a work in progress: If you encounter a bug, please send open an issue
Traceback (most recent call last):
File "/usr/local/bin/mlagents-push-to-hf", line 33, in
sys.exit(load_entry_point('mlagents', 'console_scripts', 'mlagents-push-to-hf')())
File "/content/ml-agents/ml-agents/mlagents/utils/push_to_hf.py", line 205, in main
package_to_hub(
File "/content/ml-agents/ml-agents/mlagents/utils/push_to_hf.py", line 159, in package_to_hub
_generate_config(local_path, configfile_name)
File "/content/ml-agents/ml-agents/mlagents/utils/push_to_hf.py", line 29, in _generate_config
with open(os.path.join(local_dir, configfile_name)) as yaml_in:
FileNotFoundError: [Errno 2] No such file or directory: 'results/Huggy/configuration.yaml'

Material

Google Colab
Trained successfully with no issue
Saved original yaml file.

@qboy21 qboy21 closed this as completed May 21, 2024
@adyachok
Copy link

It looks like you need to update this argument --local-dir="./results/Huggy" to --local-dir="./results/Huggy2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants