Reputation
Badges 1
47 × Eureka!AgitatedDove14 I might find something to fix the issue but I am not sure. In trains-agent worker.py script log it is written like that python3 -u -m trains_agent execute --disable-monitoring --id 9fe6d610a2b946379255b0fc25b5f9fd')
so at the end there is an extra " ' ". So when I run this script in my local environment by writing python3 -u -m trains_agent execute --disable-monitoring --id 9fe6d610a2b946379255b0fc25b5f9fd
it works and runs the code. However, if I write ` pytho...
Thanks a lot for the last information. It worked 😄
Yes, local commit without pushing it. Can I configure the code? I searched this topic in older discussions, but I can't find it.
Actually, I want to retrieve metrics from code and I thought that these metrics might be stored somewhere in the local folders so that I can access them via code. You know the log file is created and stored in /tmp folder.
AttributeError: 'Task' object has no attribute 'hyperparams'
Okey, I got it now. Thanks for help 🙂
In older versions it returns:"parameters": { "batch_size": "64", "test_batch_size": "1000", "epochs": "1", "lr": "0.01", "momentum": "0.5", "no_cuda": "False", "seed": "1", "log_interval": "10", "save_model": "True" }
But, now it just returns empty dict. I think it is because of separation of hyper-parameters section on UI.
When I print (task.data) there is no hyperparams
in dictionary.
Okey, know it is 2.9, I misunderstood you.
I was using APIClient inside of trains-agent and in trains-agent there is no v2.9. I think that's why I could not get hyperparams
print(task.data.hyperparams)
I tried this one
from trains_agent import APIClient client = APIClient() task = client.tasks.get_by_id(task="5b5cbdc5e7bc4cd5ba39081b5b4a0423") print(task.execution.parameters)
TimelyPenguin76 It is 2.1, but 2.9 files are also exist. How can I update it?
If I delete this folder that is in ~/.trains/vcs-cache directory, it fixes the problem
fatal: destination path '/home/dogukan/.trains/vcs-cache/pre-post-script-repo.git.35f82b395021c8e6afef186fafa662cc/pre-post-script-repo.git' already exists and is not an empty directory. Repository cloning failed: Command '['clone', 'git@192.168.1.230:dogukan/pre-post-script-repo.git', '/home/dogukan/.trains/vcs-cache/pre-post-script-repo.git.35f82b395021c8e6afef186fafa662cc/pre-post-script-repo.git', '--quiet', '--recursive']' returned non-zero exit status 128. Cannot find output file
Hi TimelyPenguin76 , My version is 0.15.2rc0 and I am running with this command; trains-agent daemon --detached --gpus 0 --queue default --docker nvidia/cuda --foreground