Yanisadel commited on
Commit
08c027d
·
verified ·
1 Parent(s): e5a0f63

Upload inference_example.ipynb

Browse files
Files changed (1) hide show
  1. inference_example.ipynb +4 -4
inference_example.ipynb CHANGED
@@ -25,7 +25,7 @@
25
  "metadata": {},
26
  "outputs": [],
27
  "source": [
28
- "model = AutoModel.from_pretrained(\"InstaDeepAI/segment_enformer\", trust_remote_code=True)"
29
  ]
30
  },
31
  {
@@ -50,8 +50,8 @@
50
  "\n",
51
  " Returns:\n",
52
  " torch.Tensor: One-hot encoded\n",
53
- " - If `sequences` is just one sequence (str), output shape is (196608, 4)\n",
54
- " - If `sequences` is a list of sequences, output shape is (num_sequences, 196608, 4)\n",
55
  " \n",
56
  " \"\"\"\n",
57
  " one_hot_map = {\n",
@@ -93,7 +93,7 @@
93
  "metadata": {},
94
  "outputs": [],
95
  "source": [
96
- "sequences = [\"A\"*196608, \"G\"*196608]\n",
97
  "one_hot_encoding = encode_sequences(sequences)"
98
  ]
99
  },
 
25
  "metadata": {},
26
  "outputs": [],
27
  "source": [
28
+ "model = AutoModel.from_pretrained(\"InstaDeepAI/segment_borzoi\", trust_remote_code=True)"
29
  ]
30
  },
31
  {
 
50
  "\n",
51
  " Returns:\n",
52
  " torch.Tensor: One-hot encoded\n",
53
+ " - If `sequences` is just one sequence (str), output shape is (seq_len, 4), seq_len being the length of a sequence\n",
54
+ " - If `sequences` is a list of sequences, output shape is (num_sequences, seq_len, 4)\n",
55
  " \n",
56
  " \"\"\"\n",
57
  " one_hot_map = {\n",
 
93
  "metadata": {},
94
  "outputs": [],
95
  "source": [
96
+ "sequences = [\"A\"*524_288, \"G\"*524_288]\n",
97
  "one_hot_encoding = encode_sequences(sequences)"
98
  ]
99
  },