kolibril13 commited on
Commit
d1d5d98
1 Parent(s): f8948fe

add cuda ref

Browse files
Files changed (1) hide show
  1. pages/01_app.ipynb +4 -22
pages/01_app.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 3,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
@@ -15,7 +15,7 @@
15
  " bpy.context.preferences.addons[\"cycles\"].preferences.compute_device_type = \"METAL\" \n",
16
  "\n",
17
  " # Set the device and feature set\n",
18
- " bpy.context.scene.cycles.device = \"CUDA\"\n",
19
  "\n",
20
  " for scene in bpy.data.scenes:\n",
21
  " scene.cycles.device = \"GPU\"\n",
@@ -43,27 +43,9 @@
43
  },
44
  {
45
  "cell_type": "code",
46
- "execution_count": 4,
47
  "metadata": {},
48
- "outputs": [
49
- {
50
- "data": {
51
- "application/vnd.jupyter.widget-view+json": {
52
- "model_id": "93714ac830fd431aac63537b7d098ecf",
53
- "version_major": 2,
54
- "version_minor": 0
55
- },
56
- "text/html": [
57
- "Cannot show widget. You probably want to rerun the code cell above (<i>Click in the code cell, and press Shift+Enter <kbd>⇧</kbd>+<kbd>↩</kbd></i>)."
58
- ],
59
- "text/plain": [
60
- "Cannot show ipywidgets in text"
61
- ]
62
- },
63
- "metadata": {},
64
- "output_type": "display_data"
65
- }
66
- ],
67
  "source": [
68
  "import solara\n",
69
  "from IPython.display import Image, display\n",
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": null,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
 
15
  " bpy.context.preferences.addons[\"cycles\"].preferences.compute_device_type = \"METAL\" \n",
16
  "\n",
17
  " # Set the device and feature set\n",
18
+ " bpy.context.scene.cycles.device = \"CUDA\" #GPU\n",
19
  "\n",
20
  " for scene in bpy.data.scenes:\n",
21
  " scene.cycles.device = \"GPU\"\n",
 
43
  },
44
  {
45
  "cell_type": "code",
46
+ "execution_count": null,
47
  "metadata": {},
48
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  "source": [
50
  "import solara\n",
51
  "from IPython.display import Image, display\n",