Diffusion-Sharpening icon indicating copy to clipboard operation
Diffusion-Sharpening copied to clipboard

Installation Failed

Open gesen2egee opened this issue 1 year ago • 1 comments

Because the results seemed promising, I wanted to test it out.

Following the suggested steps, I initially encountered many errors when installing the requirements, indicating that a Python version > 3.9 was needed.

Additionally, "ImageReward" couldn’t be found (later I used "image-reward" instead).

In the end, it got stuck at:

(Diffusion-Sharpening) PS D:\SDXL\Diffusion-Sharpening> sdxl.bat
Traceback (most recent call last):
  File "C:\Users\gesen\anaconda3\envs\Diffusion-Sharpening\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\gesen\anaconda3\envs\Diffusion-Sharpening\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\gesen\anaconda3\envs\Diffusion-Sharpening\Scripts\accelerate.exe\__main__.py", line 7, in <module>
    sys.exit(main())
  File "C:\Users\gesen\anaconda3\envs\Diffusion-Sharpening\lib\site-packages\accelerate\commands\accelerate_cli.py", line 48, in main
    args.func(args)
  File "C:\Users\gesen\anaconda3\envs\Diffusion-Sharpening\lib\site-packages\accelerate\commands\launch.py", line 1199, in launch_command
    simple_launcher(args)
  File "C:\Users\gesen\anaconda3\envs\Diffusion-Sharpening\lib\site-packages\accelerate\commands\launch.py", line 772, in simple_launcher
    cmd, current_env = prepare_simple_launcher_cmd_env(args)
  File "C:\Users\gesen\anaconda3\envs\Diffusion-Sharpening\lib\site-packages\accelerate\utils\launch.py", line 164, in prepare_simple_launcher_cmd_env
    raise RuntimeError(
RuntimeError: FP8 is not available on this machine. Please ensure that either Transformer Engine or MSAMP is installed.

And I’d also like to ask: Is it necessary to use Linux? How much VRAM is required?

gesen2egee avatar Feb 20 '25 08:02 gesen2egee

First, thank you for your interest in this project!

  1. Since the original environment used in the project relies on Docker images rather than Conda, some settings in the README were incorrect. We have updated the Python version and more accurate requirements.txt. Thanks for pointing this out!

  2. Regarding the "FP8 not supported on this machine" error: this GitHub version is adapted from https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_sdxl.py. Please check the environment requirements for the Hugging Face diffusers library, as our repository does not use FP8. It’s possible that certain steps you followed involved FP8 quantization.

  3. Our experimental setup is on a Linux system with an A100 GPU, and we haven't tested other environments. We cannot guarantee the code will run correctly on Windows. As for VRAM requirements, they depend on the trajectory numbers and lengths. For the default setting of 3 and 3, the adapted script requires around 60-70GB of VRAM. However, parallelization options to reduce VRAM usage may be possible, and we plan to explore more optimized training scripts in the future. Please stay tuned!

tyfeld avatar Feb 20 '25 14:02 tyfeld