Explorar o código

Update ipfs_dataset.py

Jake Kalstad %!s(int64=3) %!d(string=hai) anos
pai
achega
eb9f4ae639
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      ipfs_dataset.py

+ 1 - 2
ipfs_dataset.py

@@ -11,7 +11,7 @@ class IPFSDataset(Dataset):
     def __init__(self, cid, transform=None, target_transform=None, url="http://127.0.0.1:5001/api/v0"):
         """
         Args: 
-            cid (string): IPFS Directory CID with all the files.
+            cid (string): IPFS Directory CID with all the sub directories (categories) & files.
             url (string): IPFS base URL
             transform (callable, optional): Optional transform to be applied
                 on a sample.
@@ -28,7 +28,6 @@ class IPFSDataset(Dataset):
         self.classes.sort()
         self.class_to_idx = {self.classes[i]
             : i for i in range(len(self.classes))}
-        print(self.class_to_idx)
         for member in tar.getmembers():
             if member.isfile:
                 extractedFile = tar.extractfile(member)