Spaces:
Sleeping
Sleeping
이미지 리사이즈 준비
Browse files- clean_requirements.txt +0 -0
- input_images/grass_tile.png +3 -0
- input_images/home_tile.png +3 -0
- input_images/stone_tile.png +3 -0
- input_images/store_tile.png +3 -0
- input_images/temple_tile.png +3 -0
- input_images/tree_tile.png +3 -0
- input_images/wheat_field_tile.png +3 -0
- npc_social_network/static/images/tiles/grass_tile.png +3 -0
- npc_social_network/static/images/tiles/home_tile.png +3 -0
- npc_social_network/static/images/tiles/stone_tile.png +3 -0
- npc_social_network/static/images/tiles/store_tile.png +3 -0
- npc_social_network/static/images/tiles/temple_tile.png +3 -0
- npc_social_network/static/images/tiles/tree_tile.png +3 -0
- npc_social_network/static/images/tiles/wheat_field_tile.png +3 -0
- resized_images/temp.py +1 -0
- test.ipynb +24 -18
clean_requirements.txt
ADDED
File without changes
|
input_images/grass_tile.png
ADDED
![]() |
Git LFS Details
|
input_images/home_tile.png
ADDED
![]() |
Git LFS Details
|
input_images/stone_tile.png
ADDED
![]() |
Git LFS Details
|
input_images/store_tile.png
ADDED
![]() |
Git LFS Details
|
input_images/temple_tile.png
ADDED
![]() |
Git LFS Details
|
input_images/tree_tile.png
ADDED
![]() |
Git LFS Details
|
input_images/wheat_field_tile.png
ADDED
![]() |
Git LFS Details
|
npc_social_network/static/images/tiles/grass_tile.png
ADDED
![]() |
Git LFS Details
|
npc_social_network/static/images/tiles/home_tile.png
ADDED
![]() |
Git LFS Details
|
npc_social_network/static/images/tiles/stone_tile.png
ADDED
![]() |
Git LFS Details
|
npc_social_network/static/images/tiles/store_tile.png
ADDED
![]() |
Git LFS Details
|
npc_social_network/static/images/tiles/temple_tile.png
ADDED
![]() |
Git LFS Details
|
npc_social_network/static/images/tiles/tree_tile.png
ADDED
![]() |
Git LFS Details
|
npc_social_network/static/images/tiles/wheat_field_tile.png
ADDED
![]() |
Git LFS Details
|
resized_images/temp.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
asd
|
test.ipynb
CHANGED
@@ -2,10 +2,19 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"id": "ecf4c973",
|
7 |
"metadata": {},
|
8 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
"source": [
|
10 |
"# 설치된 라이브러리 txt로 추출하기\n",
|
11 |
"!pip freeze | sed -E 's/ @ file:\\/\\/.*//' > clean_requirements.txt"
|
@@ -60,22 +69,9 @@
|
|
60 |
"name": "stdout",
|
61 |
"output_type": "stream",
|
62 |
"text": [
|
63 |
-
"
|
64 |
-
"
|
65 |
-
|
66 |
-
},
|
67 |
-
{
|
68 |
-
"ename": "RuntimeError",
|
69 |
-
"evalue": "Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx",
|
70 |
-
"output_type": "error",
|
71 |
-
"traceback": [
|
72 |
-
"\u001b[31m---------------------------------------------------------------------------\u001b[39m",
|
73 |
-
"\u001b[31mRuntimeError\u001b[39m Traceback (most recent call last)",
|
74 |
-
"\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[1]\u001b[39m\u001b[32m, line 5\u001b[39m\n\u001b[32m 3\u001b[39m \u001b[38;5;28mprint\u001b[39m(torch.cuda.is_available()) \u001b[38;5;66;03m# 👉 True면 GPU 사용 가능\u001b[39;00m\n\u001b[32m 4\u001b[39m \u001b[38;5;28mprint\u001b[39m(torch.cuda.device_count()) \u001b[38;5;66;03m# 👉 연결된 GPU 수\u001b[39;00m\n\u001b[32m----> \u001b[39m\u001b[32m5\u001b[39m \u001b[38;5;28mprint\u001b[39m(\u001b[43mtorch\u001b[49m\u001b[43m.\u001b[49m\u001b[43mcuda\u001b[49m\u001b[43m.\u001b[49m\u001b[43mget_device_name\u001b[49m\u001b[43m(\u001b[49m\u001b[32;43m0\u001b[39;49m\u001b[43m)\u001b[49m) \u001b[38;5;66;03m# 👉 GPU 이름\u001b[39;00m\n",
|
75 |
-
"\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\human\\.conda\\envs\\portfolio\\Lib\\site-packages\\torch\\cuda\\__init__.py:544\u001b[39m, in \u001b[36mget_device_name\u001b[39m\u001b[34m(device)\u001b[39m\n\u001b[32m 532\u001b[39m \u001b[38;5;28;01mdef\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34mget_device_name\u001b[39m(device: Optional[_device_t] = \u001b[38;5;28;01mNone\u001b[39;00m) -> \u001b[38;5;28mstr\u001b[39m:\n\u001b[32m 533\u001b[39m \u001b[38;5;250m \u001b[39m\u001b[33mr\u001b[39m\u001b[33;03m\"\"\"Get the name of a device.\u001b[39;00m\n\u001b[32m 534\u001b[39m \n\u001b[32m 535\u001b[39m \u001b[33;03m Args:\u001b[39;00m\n\u001b[32m (...)\u001b[39m\u001b[32m 542\u001b[39m \u001b[33;03m str: the name of the device\u001b[39;00m\n\u001b[32m 543\u001b[39m \u001b[33;03m \"\"\"\u001b[39;00m\n\u001b[32m--> \u001b[39m\u001b[32m544\u001b[39m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mget_device_properties\u001b[49m\u001b[43m(\u001b[49m\u001b[43mdevice\u001b[49m\u001b[43m)\u001b[49m.name\n",
|
76 |
-
"\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\human\\.conda\\envs\\portfolio\\Lib\\site-packages\\torch\\cuda\\__init__.py:576\u001b[39m, in \u001b[36mget_device_properties\u001b[39m\u001b[34m(device)\u001b[39m\n\u001b[32m 564\u001b[39m \u001b[38;5;28;01mdef\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34mget_device_properties\u001b[39m(device: Optional[_device_t] = \u001b[38;5;28;01mNone\u001b[39;00m) -> _CudaDeviceProperties:\n\u001b[32m 565\u001b[39m \u001b[38;5;250m \u001b[39m\u001b[33mr\u001b[39m\u001b[33;03m\"\"\"Get the properties of a device.\u001b[39;00m\n\u001b[32m 566\u001b[39m \n\u001b[32m 567\u001b[39m \u001b[33;03m Args:\u001b[39;00m\n\u001b[32m (...)\u001b[39m\u001b[32m 574\u001b[39m \u001b[33;03m _CudaDeviceProperties: the properties of the device\u001b[39;00m\n\u001b[32m 575\u001b[39m \u001b[33;03m \"\"\"\u001b[39;00m\n\u001b[32m--> \u001b[39m\u001b[32m576\u001b[39m \u001b[43m_lazy_init\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m \u001b[38;5;66;03m# will define _get_device_properties\u001b[39;00m\n\u001b[32m 577\u001b[39m device = _get_device_index(device, optional=\u001b[38;5;28;01mTrue\u001b[39;00m)\n\u001b[32m 578\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m device < \u001b[32m0\u001b[39m \u001b[38;5;129;01mor\u001b[39;00m device >= device_count():\n",
|
77 |
-
"\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\human\\.conda\\envs\\portfolio\\Lib\\site-packages\\torch\\cuda\\__init__.py:372\u001b[39m, in \u001b[36m_lazy_init\u001b[39m\u001b[34m()\u001b[39m\n\u001b[32m 370\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m \u001b[33m\"\u001b[39m\u001b[33mCUDA_MODULE_LOADING\u001b[39m\u001b[33m\"\u001b[39m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;129;01min\u001b[39;00m os.environ:\n\u001b[32m 371\u001b[39m os.environ[\u001b[33m\"\u001b[39m\u001b[33mCUDA_MODULE_LOADING\u001b[39m\u001b[33m\"\u001b[39m] = \u001b[33m\"\u001b[39m\u001b[33mLAZY\u001b[39m\u001b[33m\"\u001b[39m\n\u001b[32m--> \u001b[39m\u001b[32m372\u001b[39m \u001b[43mtorch\u001b[49m\u001b[43m.\u001b[49m\u001b[43m_C\u001b[49m\u001b[43m.\u001b[49m\u001b[43m_cuda_init\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[32m 373\u001b[39m \u001b[38;5;66;03m# Some of the queued calls may reentrantly call _lazy_init();\u001b[39;00m\n\u001b[32m 374\u001b[39m \u001b[38;5;66;03m# we need to just return without initializing in that case.\u001b[39;00m\n\u001b[32m 375\u001b[39m \u001b[38;5;66;03m# However, we must not let any *other* threads in!\u001b[39;00m\n\u001b[32m 376\u001b[39m _tls.is_initializing = \u001b[38;5;28;01mTrue\u001b[39;00m\n",
|
78 |
-
"\u001b[31mRuntimeError\u001b[39m: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx"
|
79 |
]
|
80 |
}
|
81 |
],
|
@@ -2712,6 +2708,16 @@
|
|
2712 |
"# GPU 지원 버전으로 다시 설치\n",
|
2713 |
"!pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118"
|
2714 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2715 |
}
|
2716 |
],
|
2717 |
"metadata": {
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 2,
|
6 |
"id": "ecf4c973",
|
7 |
"metadata": {},
|
8 |
+
"outputs": [
|
9 |
+
{
|
10 |
+
"name": "stderr",
|
11 |
+
"output_type": "stream",
|
12 |
+
"text": [
|
13 |
+
"'sed'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α�, �Ǵ�\n",
|
14 |
+
"��ġ ������ �ƴմϴ�.\n"
|
15 |
+
]
|
16 |
+
}
|
17 |
+
],
|
18 |
"source": [
|
19 |
"# 설치된 라이브러리 txt로 추출하기\n",
|
20 |
"!pip freeze | sed -E 's/ @ file:\\/\\/.*//' > clean_requirements.txt"
|
|
|
69 |
"name": "stdout",
|
70 |
"output_type": "stream",
|
71 |
"text": [
|
72 |
+
"True\n",
|
73 |
+
"1\n",
|
74 |
+
"NVIDIA GeForce GTX 1070 Ti\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
]
|
76 |
}
|
77 |
],
|
|
|
2708 |
"# GPU 지원 버전으로 다시 설치\n",
|
2709 |
"!pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118"
|
2710 |
]
|
2711 |
+
},
|
2712 |
+
{
|
2713 |
+
"cell_type": "code",
|
2714 |
+
"execution_count": null,
|
2715 |
+
"id": "36fa8394",
|
2716 |
+
"metadata": {},
|
2717 |
+
"outputs": [],
|
2718 |
+
"source": [
|
2719 |
+
"# 이미지 크기 64x64로 변경 (input_images -> resized_images)"
|
2720 |
+
]
|
2721 |
}
|
2722 |
],
|
2723 |
"metadata": {
|