Skip to content

Commit

Permalink
Fix more failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothiraldan committed Jul 5, 2024
1 parent 7f1246a commit 967b56b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 6 additions & 2 deletions guides/computer_vision/Computer_Vision_with_Comet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,16 @@
"\n",
"# Sample 1000 examples from the training split as our training set\n",
"NUM_TRAIN_SAMPLES = 1000\n",
"train_dataset = load_dataset(\"svhn\", \"cropped_digits\", split=\"train\", streaming=True)\n",
"train_dataset = load_dataset(\n",
" \"svhn\", \"cropped_digits\", split=\"train\", streaming=True, trust_remote_code=True\n",
")\n",
"train_dataset = train_dataset.take(NUM_TRAIN_SAMPLES)\n",
"\n",
"# Sample 100 examples from the training split as our test set\n",
"NUM_TEST_SAMPLES = 100\n",
"test_dataset = load_dataset(\"svhn\", \"cropped_digits\", split=\"test\", streaming=True)\n",
"test_dataset = load_dataset(\n",
" \"svhn\", \"cropped_digits\", split=\"test\", streaming=True, trust_remote_code=True\n",
")\n",
"test_dataset = test_dataset.take(NUM_TEST_SAMPLES)\n",
"\n",
"transforms = T.Compose([T.ToTensor(), T.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])\n",
Expand Down
4 changes: 2 additions & 2 deletions guides/get-started/Comet_Quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
"outputs": [],
"source": [
"%pip install -U comet_ml"
"%pip install -U comet_ml \"numpy<2.0.0\""
]
},
{
Expand Down Expand Up @@ -426,7 +426,7 @@
},
"outputs": [],
"source": [
"%pip install -U comet_ml torch datasets \"transformers<4.40.0\" scikit-learn accelerate \"numpy<2.0.0\""
"%pip install -U comet_ml torch datasets \"transformers<4.40.0\" scikit-learn accelerate"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ def evaluate_classification_metrics(self):

device = "cuda" if torch.cuda.is_available() else "cpu"
dataset = load_dataset(
self.dataset_name, split=self.dataset_split, streaming=True
self.dataset_name,
split=self.dataset_split,
streaming=True,
trust_remote_code=True,
)
dataset = dataset.shuffle(self.seed, buffer_size=10_000)
dataset = dataset.take(self.n_samples)
Expand Down

0 comments on commit 967b56b

Please sign in to comment.