marco-schouten commited on
Commit
db5dde4
·
verified ·
1 Parent(s): 609dd1f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
README.md CHANGED
@@ -59,7 +59,18 @@ px_w, px_h = bbox[2] * 512, bbox[3] * 512
59
  ## Example Setup
60
  huggingface-cli login
61
 
 
 
62
  ```python
 
 
 
 
 
 
 
 
 
63
  from datasets import load_dataset
64
 
65
  dataset = load_dataset("marco-schouten/hidden-objects", streaming=True)
@@ -79,3 +90,5 @@ print(first_row)
79
  "source": "h"
80
  }
81
  ```
 
 
 
59
  ## Example Setup
60
  huggingface-cli login
61
 
62
+
63
+
64
  ```python
65
+
66
+ import torchvision.datasets as datasets
67
+
68
+ root = "INSERT_YOUR_PATH"
69
+ dataset = datasets.Places365(root=root, split='train-standard', small=False, download=True)
70
+ print(f"Downloaded {len(dataset)} images to {root}")
71
+
72
+
73
+
74
  from datasets import load_dataset
75
 
76
  dataset = load_dataset("marco-schouten/hidden-objects", streaming=True)
 
90
  "source": "h"
91
  }
92
  ```
93
+
94
+ Note: bg_path should point to the Places365 folder.