Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
textmonkey_pytorch
Commits
c9cc3178
Unverified
Commit
c9cc3178
authored
Jan 28, 2024
by
echo840
Committed by
GitHub
Jan 28, 2024
Browse files
Update readme.md
parent
a5c9ff66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
data_generation/readme.md
data_generation/readme.md
+1
-1
No files found.
data_generation/readme.md
View file @
c9cc3178
...
@@ -15,7 +15,7 @@ Generation Steps:
...
@@ -15,7 +15,7 @@ Generation Steps:
```
python grit_generate.py
```
```
python grit_generate.py
```
3. Generate segmentation maps for each image using the SAM model, and save the segmentation maps in the "./masks" directory.
3. Generate segmentation maps for each image using the SAM model, and save the segmentation maps in the "./masks" directory.
```
python amg.py --checkpoint ./model_weight/
<pth
name
>
--model-type
<model_type>
--input ./images --output ./
data_gen/
masks --convert-to-rle
```
```
python amg.py --checkpoint ./model_weight/
<pth
name
>
--model-type
<model_type>
--input ./images --output ./masks --convert-to-rle
```
4. Generate corresponding descriptions for the segmentation maps.
4. Generate corresponding descriptions for the segmentation maps.
```
python sam_blip.py
```
```
python sam_blip.py
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment