File size: 1,523 Bytes
750e54a
 
 
 
 
 
 
 
 
 
 
 
 
 
6436700
750e54a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2025 PKU-Alignment Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
INPUT_PATH="/fs1/home/frankyang17/align-anything/projects/janus/example/supervised/text_to_image/Reasoning_Spatial.json"
OUTPUT_PATH="/fs1/home/frankyang17/align-anything/projects/janus/example/supervised/text_to_image/train_unify.pt"
MODEL_PATH="/fs1/home/frankyang17/Janus-Pro-1B"
CACHE_DIR="/fs1/home/frankyang17/align-anything/align-anything/projects/janus/cache"
JANUS_REPO_PATH="/fs1/home/frankyang17/Align_Anything_Janus" # change to your own path to Align_Anything_Janus
mkdir -p $CACHE_DIR
NUM_PROCESSES=1
NUM_GPUS=1

export PYTHONPATH=$PYTHONPATH:"$JANUS_REPO_PATH"

python /fs1/home/frankyang17/align-anything/projects/janus/image_edit.py \
    --input_path $INPUT_PATH \
    --output_path $OUTPUT_PATH \
    --model_path $MODEL_PATH \
    --cache_dir $CACHE_DIR \
    --num_processes $NUM_PROCESSES \
    --num_gpus $NUM_GPUS