asdjghh commited on
Commit
750e54a
·
verified ·
1 Parent(s): 2ed5236

Upload create.sh with huggingface_hub

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