I want to start a chat with you for my purpose of research i want to use unsupervised…
- User
I want to start a chat with you for my purpose of research i want to use unsupervised learning model called transformer to classify the vessels in sea here is the descreption of my dataset • Pacific Northwest coast, close to Canada’s busiest port, Vancouver. • 265 ships in four categories: Cargo, Passengership, Tanker, and Tug • 613 samples of the recording ranging from 6 seconds to 1530 seconds • Using icListen hydrophone place 141-147meter below the horizontal place bandwidth of 1 Hz-12 kHz range of 120 dB message numbers 03 and 05 were considered for data extraction. • Message 3: provides dynamic information about the ship, such as longitude, latitude, navigational status, true heading, timestamp, speed and maritime mobile service identity (MMSI) etc. • Message5 provides static information about any ship such as MMSI, name, type, max draught, length, breadth and dimension etc. • AIS system use to mark the location and timestamp of vessels passing through the sensor. As per AIS standards, ship type IDs from 70 to 79 represent cargo ship, Ids from 60 to 69 represent passenger ship, IDs from 80 to 89 represent tanker, and ID 52 represents tugs • 47h and 4 min of recording in wav form and the sample rate are 32 kHz. • Metadata in CSV format including information of (i) class id, (ii) recording id, (iii) ship name, (iii) date and time of recording, (iv) duration of each recording in seconds, (v) distances of the ship from the sensor. its just for yoru understanding Now i am in coding phase where i have 4 folders in My google Drive named ['Cargo', 'Tanker', 'Passengership', 'Tug'] each folder have multiple subfolders and each sub folder cntain only one .wav file collectively there are 609 audio file with length of 6s to 1530s there is to much large in number i want to load data with suitable technique like generator or any other alternative you hve for me
- Assistant
It sounds like you need a way to load the large audio dataset efficiently for your unsupervised learning model. One way to approach this issue is to use a generator, which will allow you to load and preprocess the data on-the-fly.
Here's a basic implementation using a generator with the assumption that you have already mounted the Google Drive: