Skip to content

Commit 4877323

Browse files
committed
Notebook Module 4 Updated
1 parent 8ad20f8 commit 4877323

File tree

5 files changed

+439
-502
lines changed

5 files changed

+439
-502
lines changed

notebooks/04_02_detecção_de_landmarks_com_mediapipe.ipynb.ipynb

Lines changed: 0 additions & 457 deletions
This file was deleted.

notebooks/04_deteccao_facial_e_landmarks.ipynb

Lines changed: 424 additions & 32 deletions
Large diffs are not rendered by default.
File renamed without changes.

sigmoidal/utils/data.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
import zipfile
44
from pathlib import Path
55

6+
67
def download_and_extract_data():
7-
BUCKET = "my_bucket"
8-
CODE_FOLDER = Path(".")
9-
DATA_FILEPATH = CODE_FOLDER / "data" / "data.zip"
10-
DATA_FOLDER = CODE_FOLDER / "data"
11-
S3_LOCATION = f"s3://{BUCKET}/penguins"
12-
8+
BUCKET = 'my_bucket'
9+
CODE_FOLDER = Path('.')
10+
DATA_FILEPATH = CODE_FOLDER / 'data' / 'data.zip'
11+
DATA_FOLDER = CODE_FOLDER / 'data'
12+
S3_LOCATION = f's3://{BUCKET}/penguins'
13+
1314
# Cria a pasta data se não existir
1415
DATA_FOLDER.mkdir(exist_ok=True)
15-
16+
1617
# Baixa o arquivo zip
1718
urllib.request.urlretrieve(
18-
"https://storage.googleapis.com/download.tensorflow.org/data/palmer_penguins/penguins_size.zip",
19-
DATA_FILEPATH
19+
'https://storage.googleapis.com/download.tensorflow.org/data/palmer_penguins/penguins_size.zip',
20+
DATA_FILEPATH,
2021
)
21-
22+
2223
# Descompacta o arquivo zip
2324
with zipfile.ZipFile(DATA_FILEPATH, 'r') as zip_ref:
2425
zip_ref.extractall(DATA_FOLDER)

tests/test_setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""Tests for unit functionalities."""
22

3-
import pytest
43
import os
5-
from pathlib import Path
64
import sys
5+
from pathlib import Path
6+
7+
import pytest
78

89

910
def test_python_version():
10-
assert sys.version.startswith("3.11.3"), "A versão do Python não é 3.11.3"
11+
assert sys.version.startswith('3.11.3'), 'A versão do Python não é 3.11.3'

0 commit comments

Comments
 (0)