Spaces:
Running
Running
kolibril13
commited on
Commit
•
f54caa5
1
Parent(s):
3176086
remove GPU
Browse files
app.py
CHANGED
@@ -4,13 +4,6 @@ import tempfile
|
|
4 |
|
5 |
|
6 |
def generate():
|
7 |
-
bpy.context.scene.cycles.device = 'GPU'
|
8 |
-
|
9 |
-
prefs = bpy.context.preferences
|
10 |
-
prefs.addons['cycles'].preferences.get_devices()
|
11 |
-
for device in prefs.addons['cycles'].preferences.devices:
|
12 |
-
device.use = True
|
13 |
-
|
14 |
with tempfile.NamedTemporaryFile(suffix=".JPEG", delete=False) as f:
|
15 |
bpy.context.scene.render.resolution_y = 200
|
16 |
bpy.context.scene.render.resolution_x = 400
|
|
|
4 |
|
5 |
|
6 |
def generate():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
with tempfile.NamedTemporaryFile(suffix=".JPEG", delete=False) as f:
|
8 |
bpy.context.scene.render.resolution_y = 200
|
9 |
bpy.context.scene.render.resolution_x = 400
|