Spaces:
Runtime error
Runtime error
envs
Browse files287 unmodified lines288289290291292293294116 unmodified lines411412413414415416417418419420421422423424287 unmodified linesself.blur_kernel = blur_kernel@spaces.GPU(duration=100)def run(self, first_frame_path, tracking_points, prompt, drag_mode, negative_prompt, seed, randomize_seed, guidance_scale, num_inference_steps, personalized, examples_type):print("Run!")if examples_type != "":116 unmodified lineselif drag_mode=='camera':color = (0, 0, 255, 255)print(f"You selected {evt.value} at {evt.index} from {evt.target}")tracking_points.value[-1].append(evt.index)print(tracking_points.value)transparent_background = Image.open(first_frame_path).convert('RGBA')w, h = transparent_background.sizetransparent_layer = np.zeros((h, w, 4))for track in tracking_points.value:if len(track) > 1:for i in range(len(track)-1):start_point = track[i]287 unmodified lines288289290291292293294116 unmodified lines411412413414415416417418419420421422423424425426427428429430431432287 unmodified linesself.blur_kernel = blur_kernel@spaces.GPU(duration=150)def run(self, first_frame_path, tracking_points, prompt, drag_mode, negative_prompt, seed, randomize_seed, guidance_scale, num_inference_steps, personalized, examples_type):print("Run!")if examples_type != "":116 unmodified lineselif drag_mode=='camera':color = (0, 0, 255, 255)if not isinstance(tracking_points ,list):print(f"You selected {evt.value} at {evt.index} from {evt.target}")tracking_points.value[-1].append(evt.index)print(tracking_points.value)tracking_points_values = tracking_points.valueelse:tracking_points[-1].append(evt.index)tracking_points_values = tracking_pointstransparent_background = Image.open(first_frame_path).convert('RGBA')w, h = transparent_background.sizetransparent_layer = np.zeros((h, w, 4))for track in tracking_points_values:if len(track) > 1:for i in range(len(track)-1):start_point = track[i]
app.py+13-5