How to do unrar operation in SageMaker?

369 views Asked by At

I am trying to unrar the dataset for my object detection model, but I couldn't unrar the compressed file in AWS's SageMaker.

1

There are 1 answers

0
verty On
urllib.request.urlretrieve('https://www.rarlab.com/rar/rarlinux-x64-6.0.2.tar.gz', 'rarlinux-x64-6.0.2.tar.gz')
!tar -xvzf rarlinux-x64-6.0.2.tar.gz
%cd rar
!make
!sudo make install
%cd ..
!unrar x {your_rar_file}.rar

Don't forget to check the current rarlinux version.