-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpu_check.py
More file actions
26 lines (20 loc) · 861 Bytes
/
Copy pathgpu_check.py
File metadata and controls
26 lines (20 loc) · 861 Bytes
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
import torch
import matplotlib.pyplot as plt
import os
# img = plt.imread(
# 'C:\\AI_Study\\YAI\\ToyProject\\datasets\\monet2photo\\trainA\\00001.jpg')
# train_monet = os.listdir(
# 'C:\\AI_Study\\YAI\\ToyProject\\datasets\\monet2photo\\trainA')
# train_photo = os.listdir(
# 'C:\\AI_Study\\YAI\\ToyProject\\datasets\\monet2photo\\trainB')
# test_monet = os.listdir(
# 'C:\\AI_Study\\YAI\\ToyProject\\datasets\\monet2photo\\testA')
# test_photo = os.listdir(
# 'C:\\AI_Study\\YAI\\ToyProject\\datasets\\monet2photo\\testB')
# print('train_monet:', len(train_monet))
# print('train_photo:', len(train_photo))
# print('test_monet:', len(test_monet))
# print('test_photo:', len(test_photo))
# print(len(train_monet) / len(test_monet))
# print(len(train_photo) / len(test_photo))
print(torch.cuda.is_available())