Open
Description
Description
The project contains hardcoded file paths in both the configuration file (diffusion/configs/config_relactrl_pixart_1024.py
) and test script (pipeline/test_relactrl_pixart_1024.py
). These paths reference specific user directories (e.g., /home/jovyan/maao-data-cephfs-0/...
) which will not work for other users running the code.
Examples
In pipeline/test_relactrl_pixart_1024.py
:
t5_model_path = "/home/jovyan/maao-data-cephfs-0/dataspace/maao/projects/Common/models/PixArt-alpha/"
In diffusion/configs/config_relactrl_pixart_1024.py
:
model_path = '/home/jovyan/maao-data-cephfs-0/dataspace/maao/projects/Common/models/PixArt-alpha/PixArt-ControlNet/PixArt-XL-2-1024-ControlNet.pth'
Proposed Solution
Replace hardcoded paths with environment variables or relative paths. Consider:
- Using environment variables for model paths:
os.environ.get('PIXART_MODEL_PATH')
- Supporting path configuration through command-line arguments with reasonable defaults
- Creating a standardized model directory structure that's relative to the project root
Metadata
Metadata
Assignees
Labels
No labels