HypoX64 / DeepMosaics

Automatically remove the mosaics in images and videos, or add mosaics to them.
GNU General Public License v3.0
2.13k stars 441 forks source link

[HELP] Is it CUDA 11.1 or I messed up something else? #46

Open qq1292138005 opened 3 years ago

qq1292138005 commented 3 years ago

I did as this says except with the newest driver and CUDA: https://www.bilibili.com/video/BV1QK4y1a7Av

But when I got the CMD, it shows: not operatable

...while in the video, it says it has to be like this: same as you but no

I can not figure out why and there seems to be no way (or too complicated) to roll back to CUDA 10.2

Please HELP

I0lOl0I commented 3 years ago

you have entered the wrong command, that's why you need to switch your folder first then execute the command after

qq1292138005 commented 3 years ago

then what IS the right command? I copied the whole thing from the instruction

On Wed, 21 Apr 2021 at 03:10, I0lOl0I @.***> wrote:

you have entered the wrong command, that's why

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HypoX64/DeepMosaics/issues/46#issuecomment-823832600, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASW72XNALH5QWW5UNX2MTPTTJZ27BANCNFSM4XBWMLCA .

PsychoSmiley commented 1 year ago

I did not want change CUDA version so i created a environnement with CUDA. install_cuda_deepmosaic.bat

@echo off

cd /D "%~dp0"

set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
set INSTALL_ENV_DIR=%cd%\installer_files\env
set MICROMAMBA_DOWNLOAD_URL=https://github.com/mamba-org/micromamba-releases/releases/download/1.4.0-0/micromamba-win-64

set PATH=%PATH%;%SystemRoot%\system32

set PACKAGES_TO_INSTALL=cudatoolkit=11.0
set CHANNEL=-c nvidia -c conda-forge

@rem check if micromamba exists
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" --version >nul 2>&1
if "%ERRORLEVEL%" NEQ "0" (
    echo "Downloading Micromamba from %MICROMAMBA_DOWNLOAD_URL% to %MAMBA_ROOT_PREFIX%\micromamba.exe"
    mkdir "%MAMBA_ROOT_PREFIX%"
    call curl -Lk "%MICROMAMBA_DOWNLOAD_URL%" > "%MAMBA_ROOT_PREFIX%\micromamba.exe" || ( echo. && echo Micromamba failed to download. && goto end )
    echo Micromamba version:
    call "%MAMBA_ROOT_PREFIX%\micromamba.exe" --version || ( echo. && echo Micromamba not found. && goto end )
)

@rem create micromamba hook
if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" (
    call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
)

@rem create the installer env
if not exist "%INSTALL_ENV_DIR%" (
    echo Packages to install: %PACKAGES_TO_INSTALL%
    call "%MAMBA_ROOT_PREFIX%\micromamba.exe" create -y --prefix "%INSTALL_ENV_DIR%" %CHANNEL% %PACKAGES_TO_INSTALL% || ( echo. && echo Conda environment creation failed. && goto end )
)

@rem activate installer env
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo MicroMamba hook not found. && goto end )

@rem run deepmosaic.exe
call deepmosaic.exe

:end
pause

next time run deepmosaic.bat

@echo off

@echo Starting deepmosaic...

cd /D "%~dp0"

set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
set INSTALL_ENV_DIR=%cd%\installer_files\env

if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" (
  call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
)
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo MicroMamba hook not found. && goto end )

call deepmosaic.exe

:end
pause