Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,27 +1,59 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Autodesign Dataset
|
2 |
+
|
3 |
+
A dataset of room designs in different states: empty, with furniture, with shadows, and staged.
|
4 |
+
|
5 |
+
**TEST MODE: THIS IS A SAMPLE OF 100 ITEMS FROM THE FULL DATASET**
|
6 |
+
|
7 |
+
## Dataset Structure
|
8 |
+
|
9 |
+
Total examples: 100
|
10 |
+
|
11 |
+
### Fields:
|
12 |
+
- **id**: Unique identifier for each example
|
13 |
+
- **caption**: Textual description/caption for the design
|
14 |
+
- **empty_image**: Image of the empty room
|
15 |
+
- **furniture_image**: Image of the room with furniture
|
16 |
+
- **shadow_image**: Image of the room with shadows
|
17 |
+
- **staged_image**: Image of the fully staged room
|
18 |
+
|
19 |
+
## Usage Example
|
20 |
+
|
21 |
+
```python
|
22 |
+
from datasets import load_dataset
|
23 |
+
|
24 |
+
# Load the dataset
|
25 |
+
dataset = load_dataset("ApplyDesign/autodesign-dataset-test" if args.upload and args.hf_username else "YOUR_USERNAME/autodesign-dataset")
|
26 |
+
|
27 |
+
# Access an example
|
28 |
+
example = dataset['train'][0]
|
29 |
+
print(example['caption'])
|
30 |
+
|
31 |
+
# Display an image
|
32 |
+
import matplotlib.pyplot as plt
|
33 |
+
|
34 |
+
plt.figure(figsize=(15, 10))
|
35 |
+
|
36 |
+
# Display all four image types
|
37 |
+
plt.subplot(2, 2, 1)
|
38 |
+
plt.imshow(example['empty_image'])
|
39 |
+
plt.title('Empty Room')
|
40 |
+
plt.axis('off')
|
41 |
+
|
42 |
+
plt.subplot(2, 2, 2)
|
43 |
+
plt.imshow(example['furniture_image'])
|
44 |
+
plt.title('With Furniture')
|
45 |
+
plt.axis('off')
|
46 |
+
|
47 |
+
plt.subplot(2, 2, 3)
|
48 |
+
plt.imshow(example['shadow_image'])
|
49 |
+
plt.title('With Shadows')
|
50 |
+
plt.axis('off')
|
51 |
+
|
52 |
+
plt.subplot(2, 2, 4)
|
53 |
+
plt.imshow(example['staged_image'])
|
54 |
+
plt.title('Fully Staged')
|
55 |
+
plt.axis('off')
|
56 |
+
|
57 |
+
plt.tight_layout()
|
58 |
+
plt.show()
|
59 |
+
```
|