Torch 미세먼지 팁 모음


What is Torch?

Torch is a scientific computing framework based on Lua[JIT] with strong CPU and CUDA backends.
Strong points of Torch:
  • Efficient Tensor library (like NumPy) with an efficient CUDA backend
  • Neural Networks package -- build arbitrary acyclic computation graphs with automatic differentiation
    • also with fast CUDA and CPU backends
  • Good community and industry support - several hundred community-built and maintained packages.
  • Easy to use Multi-GPU support and parallelizing neural networks

댓글

  1. *.t7 데이타 파일 만들기

    the simplest thing you can do is to store the images in a table and save the table.
    images = {}
    for i=1,10 do
    images[i] = image.load(...)
    end
    torch.save('myimages.t7',images)

    That requires having all the images in memory, which might be prohibitive. Also, there is no compression in standard torch files, so it could become quite a big file. You can eventually compress the images in memory using compressJPEG before saving.

    Another option is to save the images to a different format, like hdf5 https://github.com/deepmind/torch-hdf5 , which allows you to save image per image in the same file and with compression, or LMDB https://github.com/eladhoffer/lmdb.torch .

    답글삭제

댓글 쓰기

이 블로그의 인기 게시물

파이썬으로 Homomorphic Filtering 하기

파이썬으로 2D FFT/iFFT 하기: numpy 버전