EvTexture icon indicating copy to clipboard operation
EvTexture copied to clipboard

CUDA problem

Open 321LFG opened this issue 1 year ago • 2 comments

When running basicsr/test.py for EvTexture on a macOS system without GPU support, the script fails due to CUDA-related operations despite setting use_gpu: False.

Error Message:

AssertionError: Torch not compiled with CUDA enabled

Details:

  • The script is trying to execute CUDA functions (torch.zeros in dist_validation method).
  • The model and dataset are set up correctly.
  • The test process fails when calling dist_validation.

Steps to Reproduce:

Configure basicsr/test.py to use CPU (use_gpu: False). Execute the script on macOS.

Expected Behavior: The script should run without attempting to initialize CUDA.

Actual Behavior: The script fails with a CUDA-related error.

Potential Solution: Modify the dist_validation method to ensure all operations are explicitly set to run on the CPU.

Code Snippet Causing Issue:

self.metric_results[folder] = torch.zeros(size, dtype=torch.float32, device=torch.device('cpu'))

Request for Assistance

Please provide guidance on ensuring the dist_validation method and related functions do not attempt to use CUDA when use_gpu: False.

321LFG avatar Jul 20 '24 13:07 321LFG

@321LFG Sorry for the delayed reply. Our model currently requires CUDA for testing, and we haven't yet implemented support for CPU-only testing. However, we plan to work on adding no-CUDA testing capabilities soon. Thank you for your interest in our work!

DachunKai avatar Aug 24 '24 04:08 DachunKai

@Does the model support non-CUDA test

@321LFG Sorry for the delayed reply. Our model currently requires CUDA for testing, and we haven't yet implemented support for CPU-only testing. However, we plan to work on adding no-CUDA testing capabilities soon. Thank you for your interest in our work!

Does the model support no-CUDA testing now? If not yet, when will it be supported?

xiaoxial avatar Nov 28 '24 08:11 xiaoxial