๐Ÿ“ AI & Bigdata/Python

๐Ÿ“ AI & Bigdata/Python

[Colab] Google Colab ์••์ถ• ํ’€๊ธฐ(zip, gz), ๋“œ๋ผ์ด๋ธŒ ๋งˆ์šดํŠธ

0. ์ฝ”๋žฉ์—์„œ ๋“œ๋ผ์ด๋ธŒ ๋งˆ์šดํŠธ1) code๋กœ ๋ถˆ๋Ÿฌ์˜ค๊ธฐfrom google.colab import drivedrive.mount('/content/drive')# ๋งˆ์šดํŠธํ•œ ํŒŒ์ผ ๊ฒฝ๋กœ ๋ณต์‚ฌ%cd /๊ฒฝ๋กœ ๋ถ™์—ฌ๋„ฃ๊ธฐ/# ex)%cd/content/drive/MyDrive/แ„ƒแ…ตแ†ธแ„…แ…ฅแ„‚แ…ตแ†ผ/faster R-CNN/data  2) ์—ฐ๋™์œผ๋กœ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ# ์ดํ›„ ๋“œ๋ผ์ด๋ธŒ์—์„œ ๋ฐ์ดํ„ฐ์…‹ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ ๊ฐ€๋Šฅ box = pd.read_csv('/content/drive/MyDrive/แ„ƒแ…ตแ†ธแ„…แ…ฅแ„‚แ…ตแ†ผ/faster R-CNN/data/train_solution_bounding_boxes (1).csv')box  1. (zip)์••์ถ•ํŒŒ์ผ ํ’€์–ด์ฃผ๋Š” ์ฝ”๋“œ ์ž‘์„ฑ%cd ์••์ถ•์„ ํ’€ ๊ฒฝ๋กœ!unzip -qq "์••์ถ•ํŒŒ์ผ Path"!unzip -qq "/con..

๐Ÿ“ AI & Bigdata/Python

[Colab] Github์—์„œinpynb ๋ฐ”๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ

Google Colab[ํŽธํ•จ] Jupyter notebook ์ ‘๊ทผ์„ฑ ์ธก๋ฉด: ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ pytorch, ๋“ฑ ์„ค์น˜ ๋˜์–ด ์žˆ์–ด ๋”ฐ๋กœ ์„ค์น˜ ์•ˆ ํ•ด๋„ ๋จGPU๋ฅผ ์ง€์› Colab ํŒ: Github ๋…ธํŠธ๋ถ ๋ฐ”๋กœ ์—ด๊ธฐ ๊ฐ€๋Šฅdata_code.inpynbhttps://github.com/๋‹‰๋„ค์ž„/dacon/ ... 1. ์•ž์— https://colab.research.google.com/ ๋ถ™์—ฌ ์ค€๋‹ค.2. ๋’ค์— /github.com/  โžกโฉ์ˆ˜์ •โฉโžก  /github/ ์ถ”๊ฐ€๋https://colab.research.google.com/github/๋‹‰๋„ค์ž„/dacon/ ...

๐Ÿ“ AI & Bigdata/Python

[Python] Anaconda ๊ฐ€์ƒ ํ™˜๊ฒฝ ์„ค์ •

anaconda ๊ฐ€์ƒ ํ™˜๊ฒฝ ๋งŒ๋“ค๊ธฐ๊ฐ€์ƒ ํ™˜๊ฒฝ ์ƒ์„ฑํ•˜๊ธฐPython 3.7 ๋ฒ„์ „์œผ๋กœ py37๋ผ๋Š” ์ด๋ฆ„์˜ ๊ฐ€์ƒํ™˜๊ฒฝ์„ ์ƒ์„ฑ# conda create -n ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„ python=๋ฒ„์ „conda create -n py37 python=3.7  ๊ฐ€์ƒ ํ™˜๊ฒฝ ๋ฆฌ์ŠคํŠธ ํ™•์ธ#1conda env list#2conda info envs๊ฐ€์ƒ ํ™˜๊ฒฝ ํ™œ์„ฑํ™”#1. conda activate ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„conda activate py37#2.activate ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„activate py37๊ฐ€์ƒ ํ™˜๊ฒฝ ๋น„ํ™œ์„ฑํ™”#1. conda deactivate ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„conda deactivate py37#2. deactivate ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„deactivate py37๊ฐ€์ƒ ํ™˜๊ฒฝ ์‚ญ์ œconda env remove -n ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„๊ฐ€์ƒ ํ™˜๊ฒฝ์— ๋ผ์ด๋ธŒ๋Ÿฌ..

SOIT
'๐Ÿ“ AI & Bigdata/Python' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก (2 Page)