File size: 1,858 Bytes
e0265b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
setlocal
cd /d "%~dp0"
python -c "import yt_dlp, cv2, numpy" 2>nul
if errorlevel 1 (
  echo Installing the ADAM Video Dataset Collector requirements...
  python -m pip install -r "%~dp0requirements.txt"
  if errorlevel 1 goto :adam_dependency_error
)
python -c "import selenium, requests, PIL" 2>nul
if errorlevel 1 (
  echo Installing the Dataset Collector requirements for ADAM...
  python -m pip install -r "D:\Users\PlayRobloxAllDay\Desktop\Programs\GoogleImageDatasetCollector\requirements.txt"
  if errorlevel 1 goto :dependency_error
)
python -c "import datasets, diffusers, transformers, accelerate, torch, torchvision" 2>nul
if errorlevel 1 (
  echo Installing the DDPM training requirements for ADAM...
  python -m pip install -r "D:\Users\PlayRobloxAllDay\Desktop\Programs\DDPM\requirements.txt"
  if errorlevel 1 goto :ddpm_dependency_error
)
python main.py
if errorlevel 1 (
  echo.
  echo ADAM could not start. Install the requirements with:
  echo   python -m pip install -r requirements.txt
  echo.
  pause
)
endlocal
exit /b

:adam_dependency_error
echo.
echo ADAM could not install its Video Dataset Collector requirements.
echo Run this command with the same Python used to start ADAM:
echo   python -m pip install -r "%~dp0requirements.txt"
echo.
pause
endlocal
exit /b

:dependency_error
echo.
echo ADAM could not install the Dataset Collector requirements.
echo Run this command and then launch ADAM again:
echo   python -m pip install -r "D:\Users\PlayRobloxAllDay\Desktop\Programs\GoogleImageDatasetCollector\requirements.txt"
echo.
pause
endlocal
exit /b

:ddpm_dependency_error
echo.
echo ADAM could not install the DDPM training requirements.
echo Run this command and then launch ADAM again:
echo   python -m pip install -r "D:\Users\PlayRobloxAllDay\Desktop\Programs\DDPM\requirements.txt"
echo.
pause
endlocal
exit /b