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

Support for usage in Docker containers without write permissions #1455

Closed
jnccd opened this issue Sep 8, 2023 · 0 comments · Fixed by #1474
Closed

Support for usage in Docker containers without write permissions #1455

jnccd opened this issue Sep 8, 2023 · 0 comments · Fixed by #1474
Labels
enhancement New feature or request

Comments

@jnccd
Copy link
Contributor

jnccd commented Sep 8, 2023

🚀 Feature Request

Im trying to deploy YoloNAS to a specific server system that does not provide write access to the root folder of docker containers, which is what I assume leads to this output:

>>> import super_gradients
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/__init__.py", line 1, in <module>
    from super_gradients.common import init_trainer, is_distributed, object_names
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/__init__.py", line 2, in <module>
    from super_gradients.common.crash_handler import setup_crash_handler
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/crash_handler/__init__.py", line 1, in <module>
    from super_gradients.common.crash_handler.crash_handler import setup_crash_handler
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/crash_handler/crash_handler.py", line 3, in <module>
    from super_gradients.common.crash_handler.crash_tips_setup import setup_crash_tips
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/crash_handler/crash_tips_setup.py", line 3, in <module>
    from super_gradients.common.environment.env_variables import env_variables
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/environment/__init__.py", line 4, in <module>
    from super_gradients.common.environment.ddp_utils import init_trainer, is_distributed
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/environment/ddp_utils.py", line 5, in <module>
    from super_gradients.common.environment.device_utils import device_config
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/environment/device_utils.py", line 6, in <module>
    from super_gradients.common.environment.argparse_utils import pop_local_rank
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/environment/argparse_utils.py", line 7, in <module>
    logger = get_logger(__name__)
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/abstractions/abstract_logger.py", line 13, in get_logger
    AutoLoggerConfig.get_instance()
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/auto_logging/auto_logger.py", line 110, in get_instance
    _super_gradients_logger_config._setup_default_logging()
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/auto_logging/auto_logger.py", line 34, in _setup_default_logging
    self._setup_logging(
  File "/usr/local/lib/python3.8/dist-packages/super_gradients/common/auto_logging/auto_logger.py", line 51, in _setup_logging
    os.makedirs(os.path.dirname(filename), exist_ok=True)
  File "/usr/lib/python3.8/os.py", line 223, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/sg_logs'

Proposed Solution (Optional)

It would be nice if there was a build log folder path argument, eg. per env var, or if build log writing could be disabled entirely

@BloodAxe BloodAxe added the enhancement New feature or request label Sep 9, 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

Successfully merging a pull request may close this issue.

2 participants