This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import cv2 | |
import h5py | |
class SvhnDataset: | |
def __init__(self, data_dir): | |
self.data_dir = data_dir | |
self.file = h5py.File(os.path.join(data_dir, "digitStruct.mat")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
#if canImport(FoundationNetworking) | |
import FoundationNetworking | |
#endif | |
var semaphore = DispatchSemaphore (value: 0) | |
let parameters = [ | |
[ | |
"key": "title", |