Closed terbed closed 2 months ago
I have a similar issue #1198 which has also not been resolved yet. But in my case I found a very strange solution is to add a line import tmp
in my main.py
to execute, where tmp.py
is an empty file (no code inside it) in the same folder.
Hi @wxdrizzle, Thanks for linking in your similar issue.
Some updates:
__init__.py
file was missing in my src folder. Adding this file clearml successfully recognized the torchvision package and some additional missing packages.lightning[pytorch-extra]
package.__init__.py
)Hi @terbed @wxdrizzle ! We are using a pigar fork to auto-fetch the requirements. Only top-level imports will be fetched (see faqs): https://github.com/damnever/pigar#faq. Also, note that only packages
will be inspected, so the __init__.py
is mandatory if you wish local files to be inspected.
There are a few ways to specify other packages/other auto-detection machanism:
pip freeze
or conda list
for package detection (or set sdk.development.detect_with_pip_freeze
or development.detect_with_conda_freeze
to true in clearml.conf
to achieve the same thing)Hi @eugen-ajechiloae-clearml, Thank you for the information, this explains everything! :)
Best wishes, Daniel
Thank you very much for the detailed explanation!
Describe the bug
I cannot reproduce experiments remotely, because the environment is improperly constructed. The recognized packages:
Actual packages in the environment:
So the remotely reproduced training fails because torchvision is not installed in the env:
Environment
Related Discussion