MCPcopy Create free account

hub / github.com/cannoneyed/isometric-nyc / functions

Functions1,260 in github.com/cannoneyed/isometric-nyc

↓ 1 callersFunctioncalculate_quadrant_lat_lng
Calculate the lat/lng anchor for a quadrant at position (quadrant_x, quadrant_y). The anchor is the bottom-right corner of the quadrant. For t
src/isometric_nyc/generation/shared.py:574
↓ 1 callersFunctioncalculate_required_grid_size
Calculate the minimum grid size needed to cover the ground area. Args: lat: Latitude in degrees zoom: Google Maps zoom level tile_si
src/isometric_nyc/whitebox.py:115
↓ 1 callersFunctioncalculate_selection_pixel_bounds
Calculate the pixel bounding box of selected quadrants within a template. Args: selected_positions: List of selected quadrant positions
src/isometric_nyc/generation/generate_template_test.py:658
↓ 1 callersFunctioncalculate_tile_anchor
Calculate the tile anchor (top-left quadrant) given a target quadrant and its position. For example, if target is (0, 0) and target_position is
src/isometric_nyc/generation/generate_tile_omni.py:66
↓ 1 callersFunctioncalculate_tile_anchor
Calculate the tile anchor (top-left quadrant) given a target quadrant and its position. For example, if target is (0, 0) and target_position is
src/isometric_nyc/generation/generate_tile_nano_banana.py:205
↓ 1 callersFunctioncalculate_tile_grid
Calculate tile positions for an n_tiles_x × n_tiles_y grid. The top-left tile (row=0, col=0) is centered at the seed lat/lng. Tiles extend rig
src/isometric_nyc/generation/seed_tiles.py:225
↓ 1 callersFunctioncalculate_view_params
Calculate the view parameters to show the full bounding box. Args: config: Generation config dictionary top_left: (x, y) quadrant co
src/isometric_nyc/generation/visualize_bounds.py:192
↓ 1 callersFunctioncall_endpoint
Call the Modal inference endpoint.
inference/test_server.py:147
↓ 1 callersFunctioncall_gemini_api
Call the Gemini API to generate a transformed version of the image. Args: input_image: The input image to transform prompt: The gene
src/isometric_nyc/generation/generate_full_map_layer.py:307
↓ 1 callersFunctioncall_gemini_dark_mode
Call the Gemini API to generate a dark mode version of the input image. Args: input_image: The input image (daytime pixel art) to transform
src/isometric_nyc/generation/generate_dark_mode.py:120
↓ 1 callersFunctioncall_gemini_nano_banana
Call the Gemini API to generate pixel art using the nano banana model. Args: template_image: The template image with render pixels and red b
src/isometric_nyc/generation/generate_tile_nano_banana.py:544
↓ 1 callersFunctioncall_gemini_snow
Call the Gemini API to generate a snowy version of the input image. Args: input_image: The input image (original pixel art) to transform
src/isometric_nyc/generation/generate_layer_snow.py:102
↓ 1 callersFunctioncall_gemini_water_mask
Call the Gemini API to generate a water mask for the input image. Args: input_image: The input image (render or generation) to create mask f
src/isometric_nyc/generation/generate_water_mask_tile.py:86
↓ 1 callersFunctioncall_local_api
Call the local inference API to generate pixel art. The local API expects multipart/form-data with: - file: The input image as PNG or JPEG
src/isometric_nyc/generation/generate_omni.py:256
↓ 1 callersFunctioncall_local_api_b64
Call the local inference API using base64 encoding (faster than multipart). The local API expects JSON with: - image_b64: Base64-encoded inp
src/isometric_nyc/generation/generate_omni.py:118
↓ 1 callersFunctioncall_oxen_api
Call the Oxen API to generate an infill image. Args: image_url: Public URL of the infill image api_key: Oxen API key Returns:
src/isometric_nyc/generate_tile_oxen.py:65
↓ 1 callersFunctioncall_oxen_api
Call the Oxen API to generate an infill image.
src/isometric_nyc/generate_tile_oxen_infill.py:310
↓ 1 callersFunctioncall_oxen_api
Call the Oxen API to generate pixel art. Args: image_url: Public URL of the input template image model_config: Optional model config
src/isometric_nyc/generation/generate_omni.py:378
↓ 1 callersFunctioncall_oxen_api
Call the Oxen API to generate pixel art.
src/isometric_nyc/generation/automatic_generation.py:621
↓ 1 callersFunctioncan_generate_single
Check if a single quadrant can be generated.
src/isometric_nyc/generation/automatic_generation.py:906
↓ 1 callersFunctioncancelQueueItem
(itemId)
src/isometric_nyc/generation/static/viewer.js:436
↓ 1 callersFunctioncancel_processing_items
Mark all processing items as cancelled (error status). This is used when the user wants to cancel everything, including items that are current
src/isometric_nyc/generation/queue_db.py:671
↓ 1 callersFunctioncancel_queue_item_by_id
Cancel a specific queue item by its ID. Can cancel items in 'pending' or 'processing' status. Returns True if an item was cancelled, False ot
src/isometric_nyc/generation/queue_db.py:641
↓ 1 callersFunctionchangeTileType
()
src/isometric_nyc/generation/static/viewer.js:533
↓ 1 callersFunctioncheckForReset
()
src/app/src/App.tsx:88
↓ 1 callersFunctioncheck_all_quadrants_rendered
Check if all 4 quadrants for the tile starting at (x, y) have been rendered. The tile covers quadrants: (x, y), (x+1, y), (x, y+1), (x+1, y+1)
src/isometric_nyc/generation/shared.py:332
↓ 1 callersFunctioncheck_bounds
()
src/isometric_nyc/citydb/check_boundaries.py:6
↓ 1 callersFunctioncheck_generation
()
src/notebooks/tile.py:185
↓ 1 callersFunctioncheck_generation
()
src/notebooks/few-shot-checks.py:184
↓ 1 callersFunctioncheck_generation
(tile_dir: str)
src/isometric_nyc/tile_generation/generation_checker.py:12
↓ 1 callersFunctioncheck_raw_coords
()
src/isometric_nyc/citydb/check_coordinates.py:6
↓ 1 callersFunctioncheck_tiles
Render a 2x2 grid of tiles and assemble them. Renders tiles at (0,0), (1,0), (0,1), (1,1) and assembles into one image.
src/isometric_nyc/generation/check_tiles.py:61
↓ 1 callersFunctionclearNycOutline
()
src/isometric_nyc/generation/static/viewer.js:3239
↓ 1 callersFunctionclear_all_generations
Clear all generations in the database.
src/isometric_nyc/generation/clear_generations.py:86
↓ 1 callersFunctionclear_completed_items
Delete completed/errored items older than max_age_seconds. Returns the number of items deleted.
src/isometric_nyc/generation/queue_db.py:599
↓ 1 callersFunctionclear_pending_queue
Delete all pending items from the queue. Does NOT affect items that are currently processing. Returns the number of items deleted.
src/isometric_nyc/generation/queue_db.py:621
↓ 1 callersFunctionclear_tile_generations
Clear generations for all 4 quadrants in a tile.
src/isometric_nyc/generation/clear_generations.py:74
↓ 1 callersFunctioncollect_generations
()
src/isometric_nyc/collect/collect_generations.py:5
↓ 1 callersFunctioncollect_infills
()
src/isometric_nyc/collect/collect_infills.py:5
↓ 1 callersFunctioncollect_renders
()
src/isometric_nyc/collect/collect_renders.py:5
↓ 1 callersFunctioncollect_v04_generations
()
src/isometric_nyc/collect/collect_v04_generations.py:5
↓ 1 callersFunctioncollect_v04_generations_nested
()
src/isometric_nyc/collect/collect_v04_generations_nested.py:5
↓ 1 callersFunctioncollect_v04_renders
()
src/isometric_nyc/collect/collect_v04_renders.py:5
↓ 1 callersFunctioncollect_v04_renders_nested
()
src/isometric_nyc/collect/collect_v04_renders_nested.py:5
↓ 1 callersFunctioncomposite_images
Composite images for a single tile directory into a 2x2 grid (1:1 aspect ratio). Layout options: Default: [Whitebox] [Render] [Generati
src/isometric_nyc/synthetic_data/create_inline_examples.py:21
↓ 1 callersFunctioncompute_bounds_from_corners
Compute the bounding box (top_left, bottom_right) from any two opposite corners. Args: top_left: (x, y) of top-left corner top_right
src/isometric_nyc/generation/visualize_bounds.py:77
↓ 1 callersFunctionconvert_bounds_to_quadrant_coords
Convert a bounds polygon from lat/lng to quadrant coordinates. Args: config: Generation config dictionary bounds_polygon: Shapely Polygo
src/isometric_nyc/generation/export_pmtiles.py:327
↓ 1 callersFunctionconvert_bounds_to_quadrant_coords
Convert a bounds polygon from lat/lng to quadrant coordinates.
src/isometric_nyc/generation/export_dzi.py:233
↓ 1 callersFunctioncopy_infill_files
Copy infill files from tile subdirs to destination with prefixed names. Args: source_dir: Parent directory containing tile subdirs (e.g.,
src/isometric_nyc/synthetic_data/copy_infill_dataset.py:77
↓ 1 callersFunctioncopy_manifest
Copy the manifest.json to the output directory.
src/isometric_nyc/postprocess_tiles.py:285
↓ 1 callersFunctioncount_generated_in_block
Count how many quadrants in a 2x2 block are generated/scheduled.
src/isometric_nyc/generation/make_rectangle_plan.py:481
↓ 1 callersFunctioncount_generated_quadrants
Count total and generated quadrants in the specified range. Returns: (total_in_range, with_data_count)
src/isometric_nyc/generation/export_tiles_for_app.py:171
↓ 1 callersFunctioncount_generated_quadrants
Count total and generated quadrants in the specified range.
src/isometric_nyc/generation/export_pmtiles.py:154
↓ 1 callersFunctioncount_generated_quadrants
Count total and generated quadrants in the specified range.
src/isometric_nyc/generation/export_dzi.py:100
↓ 1 callersFunctioncreateGradientMaskTexture
( gl: WebGLRenderingContext, size: number = 512 )
src/layers/water_shader/app/src/shaders/water.ts:283
↓ 1 callersFunctioncreatePlaceholderTexture
( gl: WebGLRenderingContext, color: [number, number, number, number] = [74, 99, 114, 255] )
src/layers/water_shader/app/src/shaders/water.ts:259
↓ 1 callersFunctioncreateProgram
( gl: WebGLRenderingContext, vertexShader: WebGLShader, fragmentShader: WebGLShader )
src/layers/water_shader/app/src/shaders/water.ts:158
↓ 1 callersFunctioncreateProgram
( gl: WebGLRenderingContext, vertexShader: WebGLShader, fragmentShader: WebGLShader )
src/app/src/shaders/water.ts:200
↓ 1 callersFunctioncreateSolidTexture
( gl: WebGLRenderingContext, color: [number, number, number, number] = [0, 0, 0, 255] // Black = land )
src/app/src/shaders/water.ts:307
↓ 1 callersFunctioncreateTexture
( gl: WebGLRenderingContext, image: HTMLImageElement | ImageBitmap )
src/app/src/shaders/water.ts:287
↓ 1 callersFunctioncreate_all_infill_variants
Create all 8 infill variants for a single tile directory. Returns: Number of variants successfully created.
src/isometric_nyc/synthetic_data/create_infill_dataset.py:210
↓ 1 callersFunctioncreate_and_save_plan
Create a generation plan and save it to automatic_plan.json. Returns the plan, or None if no generation is needed.
src/isometric_nyc/generation/automatic_generation.py:1194
↓ 1 callersFunctioncreate_bounds_mask_for_tile
Create a mask for a tile based on bounds polygon. The mask is white (255) where pixels are inside the bounds and black (0) outside. Args:
src/isometric_nyc/generation/export_pmtiles.py:350
↓ 1 callersFunctioncreate_bounds_mask_for_tile
Create a mask for a tile based on bounds polygon.
src/isometric_nyc/generation/export_dzi.py:245
↓ 1 callersFunctioncreate_dataset_csv
()
src/isometric_nyc/synthetic_data/create_dataset_csv.py:5
↓ 1 callersFunctioncreate_debug_map
Create an interactive debug map showing generated quadrants overlaid on NYC. Args: generation_dir: Path to the generation directory outp
src/isometric_nyc/generation/debug_map.py:640
↓ 1 callersFunctioncreate_debug_map
Create an interactive debug map showing the generation plan. Args: layer_dir: Path to the layer directory output_path: Optional outp
src/isometric_nyc/generation/debug_generate_full_map_layer.py:555
↓ 1 callersFunctioncreate_generation_plan
Create an optimal generation plan to fill all empty quadrants. Strategy: 1. Fill any interior gaps first (within current generated bounds) 2
src/isometric_nyc/generation/automatic_generation.py:993
↓ 1 callersFunctioncreate_infill_image
Create an infill image for a single tile directory. Output: 1024x1024 'infill.png' Left half (0-512): Left half of generation.png Right half
src/isometric_nyc/synthetic_data/create_infill_examples.py:24
↓ 1 callersFunctioncreate_infill_variant
Create an infill variant by compositing generation and render images. Args: img_gen: The generation (pixel art) image. img_r
src/isometric_nyc/synthetic_data/create_infill_dataset.py:135
↓ 1 callersFunctioncreate_infills_csv
Create a CSV file mapping infill images to generations with prompts. Args: dest_dir: Directory containing the copied infill files. i
src/isometric_nyc/synthetic_data/copy_infill_dataset.py:142
↓ 1 callersFunctioncreate_inpainting_image
Create an inpainting training image. Takes the generation image and replaces the specified rectangle with pixels from the render image, then d
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:333
↓ 1 callersFunctioncreate_layer_config
Create the layer configuration dictionary and save it. Args: output_dir: Path to the layer directory name: Name of the layer g
src/isometric_nyc/generation/init_layer.py:355
↓ 1 callersFunctioncreate_metadata_sidecar
Create a metadata sidecar JSON file for the DZI. This provides information the frontend needs that isn't in the DZI file itself. If app_
src/isometric_nyc/generation/export_dzi.py:790
↓ 1 callersFunctioncreate_omni_image
Create an omni training image. Takes the generation image and replaces specified regions with input pixels, applies transformations (noise, de
src/isometric_nyc/synthetic_data/create_omni_dataset.py:279
↓ 1 callersFunctioncreate_progress_db
Create the progress database with the generation plan. Args: db_path: Path to the database file items: List of GenerationItems to in
src/isometric_nyc/generation/init_layer.py:283
↓ 1 callersFunctioncreate_strip_plan_from_args
Create a strip generation plan. Returns the plan and the generation edge. Raises ValueError if no valid generation edge is found.
src/isometric_nyc/generation/make_strip_plan.py:812
↓ 1 callersFunctioncreate_template
Create a template image for the selected quadrants. Args: conn: Database connection config: Generation config selected_quadrants: Li
src/isometric_nyc/generation/generate_template.py:203
↓ 1 callersFunctioncreate_tiny_db
Create a subset database with only quadrants in the specified rectangle. Args: source_db_path: Path to source quadrants.db dest_db_p
src/isometric_nyc/create_tiny_nyc.py:53
↓ 1 callersFunctioncreate_tiny_generation
Create a tiny generation directory with a subset of quadrants. Args: source_dir: Source generation directory (e.g., generations/nyc)
src/isometric_nyc/create_tiny_nyc.py:169
↓ 1 callersFunctioncreate_v04_csv_flat
()
src/isometric_nyc/synthetic_data/create_v04_csv_flat.py:5
↓ 1 callersFunctioncreate_v04_dataset
()
src/isometric_nyc/synthetic_data/create_v04.py:5
↓ 1 callersFunctioncreate_v04_generation_csv
()
src/isometric_nyc/synthetic_data/create_v04_generation_csv.py:5
↓ 1 callersFunctioncreate_v04_infills_csv
()
src/isometric_nyc/synthetic_data/create_v04_infills_csv.py:5
↓ 1 callersFunctioncreate_water_image
Create a solid water color image.
src/isometric_nyc/generation/fill_water.py:52
↓ 1 callersFunctioncycleTileType
()
src/isometric_nyc/generation/static/viewer.js:540
↓ 1 callersFunctiondb_census
(conn)
src/isometric_nyc/citydb/check_db.py:7
↓ 1 callersFunctiondeploy_github_pages
Deploy built content to GitHub Pages branch.
src/app/deploy.py:86
↓ 1 callersFunctiondetect_water_tiles
Scan all tiles and detect which ones contain water using parallel processing. Args: generation_dir: Path to the generation directory thr
src/isometric_nyc/generation/detect_water_tiles.py:166
↓ 1 callersMethoddistance_to
Calculate Euclidean distance to another point.
src/isometric_nyc/generation/generate_water_masks.py:62
↓ 1 callersFunctiondownload_file
Download a file with progress bar.
src/isometric_nyc/download_generation.py:52
↓ 1 callersFunctiondownload_generation
Download a generation from R2.
src/isometric_nyc/download_generation.py:86
↓ 1 callersFunctiondownload_image
Download an image from a URL and save it to the specified path. Args: url: URL of the image to download output_path: Path where the
src/isometric_nyc/generate_tile_oxen.py:112
↓ 1 callersFunctiondownload_image
Download an image from a URL and save it.
src/isometric_nyc/generate_tile_oxen_infill.py:347
↓ 1 callersFunctiondownload_image_to_pil
Download an image from a URL and return as PIL Image. Includes retry logic for transient errors (e.g., 403 Forbidden when the image is not yet
src/isometric_nyc/generation/generate_omni.py:501
↓ 1 callersFunctiondownload_image_to_pil
Download an image from a URL and return as PIL Image. Includes retry logic for transient errors (e.g., 403 Forbidden when the image is not yet
src/isometric_nyc/generation/automatic_generation.py:662
↓ 1 callersFunctiondraw_multi_region_outline
Draw outlines around multiple rectangular regions.
src/isometric_nyc/synthetic_data/create_omni_dataset.py:179
↓ 1 callersFunctiondraw_outline
Draw an outline around a rectangular region. The outline is drawn inside the box. When the box extends to the image edge, the outline is inset
src/isometric_nyc/generate_tile_oxen_infill.py:34
↓ 1 callersFunctiondraw_outline
Draw a solid red outline around a rectangular region. The outline is drawn ON TOP of the image (no pixel displacement). Args: img: The
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:63
↓ 1 callersFunctiondraw_outline
Draw an outline around a rectangular region. The outline is drawn inside the box. When the box extends to the image edge, the outline is
src/isometric_nyc/synthetic_data/create_infill_dataset.py:39
← previousnext →301–400 of 1,260, ranked by callers