Spaces:
Runtime error
Runtime error
scripts/generate_prompt.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
-
import argparse
|
2 |
import csv
|
3 |
import os
|
4 |
-
import json
|
5 |
-
|
6 |
-
from PIL import Image
|
7 |
import cv2
|
8 |
import numpy as np
|
|
|
9 |
from tensorflow.keras.layers import TFSMLayer
|
10 |
from huggingface_hub import hf_hub_download
|
11 |
|
12 |
import spaces
|
13 |
|
|
|
|
|
|
|
14 |
# 画像サイズの設定
|
15 |
IMAGE_SIZE = 448
|
16 |
|
|
|
|
|
1 |
import csv
|
2 |
import os
|
|
|
|
|
|
|
3 |
import cv2
|
4 |
import numpy as np
|
5 |
+
import tensorflow as tf
|
6 |
from tensorflow.keras.layers import TFSMLayer
|
7 |
from huggingface_hub import hf_hub_download
|
8 |
|
9 |
import spaces
|
10 |
|
11 |
+
# TensorFlowがGPUを使用しないように設定
|
12 |
+
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
|
13 |
+
|
14 |
# 画像サイズの設定
|
15 |
IMAGE_SIZE = 448
|
16 |
|