Datasets:
Nick Padgett
commited on
Commit
•
eeebcd8
1
Parent(s):
c7b2945
Updating the examples to exclude s3 file keys, since those have now been removed.
Browse files- .idea/workspace.xml +4 -1
- tutorials/images.md +3 -1
.idea/workspace.xml
CHANGED
@@ -4,7 +4,10 @@
|
|
4 |
<option name="autoReloadType" value="SELECTIVE" />
|
5 |
</component>
|
6 |
<component name="ChangeListManager">
|
7 |
-
<list default="true" id="82fe8b44-aff4-4cf4-beac-67321e5b595c" name="Changes" comment=""
|
|
|
|
|
|
|
8 |
<option name="SHOW_DIALOG" value="false" />
|
9 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
10 |
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
|
4 |
<option name="autoReloadType" value="SELECTIVE" />
|
5 |
</component>
|
6 |
<component name="ChangeListManager">
|
7 |
+
<list default="true" id="82fe8b44-aff4-4cf4-beac-67321e5b595c" name="Changes" comment="">
|
8 |
+
<change beforePath="$PROJECT_DIR$/../PD3M/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/../PD3M/README.md" afterDir="false" />
|
9 |
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
10 |
+
</list>
|
11 |
<option name="SHOW_DIALOG" value="false" />
|
12 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
13 |
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
tutorials/images.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
# Downloading Images
|
2 |
-
Once you have the URLs
|
3 |
|
4 |
#### cURL
|
5 |
Download an image from a url to a local image file with the name `image.png`:
|
6 |
```bash
|
7 |
curl -O image.png https://pd12m.s3.us-west-2.amazonaws.com/images/image.png
|
8 |
```
|
|
|
9 |
#### Python
|
10 |
Download an image from a url to a local image file with the name `image.png`:
|
11 |
```python
|
@@ -16,6 +17,7 @@ response = requests.get(url)
|
|
16 |
with open('image.png', 'wb') as f:
|
17 |
f.write(response.content)
|
18 |
```
|
|
|
19 |
#### img2dataset
|
20 |
You can also use the `img2dataset` tool to quickly download images from a metadata file. The tool is available [here](https://github.com/rom1504/img2dataset). The example below will download all the images to a local `images` directory.
|
21 |
```bash
|
|
|
1 |
# Downloading Images
|
2 |
+
Once you have the URLs from the metadata files, you can download the images through any standard means.
|
3 |
|
4 |
#### cURL
|
5 |
Download an image from a url to a local image file with the name `image.png`:
|
6 |
```bash
|
7 |
curl -O image.png https://pd12m.s3.us-west-2.amazonaws.com/images/image.png
|
8 |
```
|
9 |
+
|
10 |
#### Python
|
11 |
Download an image from a url to a local image file with the name `image.png`:
|
12 |
```python
|
|
|
17 |
with open('image.png', 'wb') as f:
|
18 |
f.write(response.content)
|
19 |
```
|
20 |
+
|
21 |
#### img2dataset
|
22 |
You can also use the `img2dataset` tool to quickly download images from a metadata file. The tool is available [here](https://github.com/rom1504/img2dataset). The example below will download all the images to a local `images` directory.
|
23 |
```bash
|