🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

EMNIST in PyTorch

↗ Quelle (dev.to)
🗣️ Stimme:

explains can use EMNIST dataset as shown below:



*Memos:




  • The 1st argument is root(Required-Type:str or pathlib.Path). *An absolute or relative path is possible.

  • The 2nd argument is split(Required-Type:str). *"byclass", "bymerge", "balanced", "letters", "digits" or "mnist" can be set to it.

  • There is train argument(Optional-Default:False-Type:float):
    *Memos:


    • For split="byclass" and split="byclass", if it's True, train data(697,932 images) is used while if it's False, test data(116,323 images) is used.

    • For split="balanced", if it's True, train data(112,800 images) is used while if it's False, test data(188,00 images) is used.

    • For split="letters", if it's True, train data(124,800 images) is used while if it's False, test data(20,800 images) is used.

    • For split="digits", if it's True, train data(240,000 images) is used while if it's False, test data(40,000 images) is used.

    • For split="mnist", if it's True, train data(60,000 images) is used while if it's False, test data(10,000 images) is used.






  • There is transform argument(Optional-Default:None-Type:callable).


  • There is target_transform argument(Optional-Default:None-Type:callable).


  • There is download argument(Optional-Default:False-Type:bool):
    *Memos:


    • If it's True, the dataset is downloaded from the internet and extracted(unzipped) to root.

    • If it's True and the dataset is already downloaded, it's extracted.

    • If it's True and the dataset is already downloaded and extracted, nothing happens.

    • It should be False if the dataset is already downloaded and extracted because it's faster.

    • You can manually download and extract the dataset from




      CODE
      from torchvision.datasets import EMNIST
      from torchvision.transforms import v2

      train_data = EMNIST(
      root="data",
      split="byclass",
      train=True,
      transform=v2.Compose([
      v2.RandomHorizontalFlip(p=1.0),
      v2.RandomRotation(degrees=(90, 90))
      ])
      )

      test_data = EMNIST(
      root="data",
      split="byclass",
      train=False,
      transform=v2.Compose([
      v2.RandomHorizontalFlip(p=1.0),
      v2.RandomRotation(degrees=(90, 90))
      ])
      )

      import matplotlib.pyplot as plt

      def show_images(data):
      plt.figure(figsize=(12, 2))
      col = 5
      for i, (image, label) in enumerate(data, 1):
      plt.subplot(1, col, i)
      plt.title(label)
      plt.imshow(image)
      if i == col:
      break
      plt.show()

      show_images(data=train_data)
      show_images(data=test_data)






      Image description

      Vollständiger Original-Bericht
      Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
      ↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten EMNIST in PyTorch

Thematisch verwandte Begriffe: EMNIST, PyTorch · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...