better organize vibeui
This commit is contained in:
parent
a2500bb3b3
commit
94e2d6b732
@ -1,6 +1,5 @@
|
|||||||
!dist/vibeui.pt
|
dist
|
||||||
|
vibeui
|
||||||
runs
|
|
||||||
venv
|
venv
|
||||||
src/test
|
src/test
|
||||||
|
|
||||||
|
1
services/our/.gitignore
vendored
1
services/our/.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
runs
|
|
||||||
venv
|
venv
|
||||||
vibeui
|
vibeui
|
||||||
|
|
||||||
|
@ -21,7 +21,8 @@ COPY --from=ipfs/kubo:v0.36.0 /usr/local/bin/ipfs /usr/local/bin/ipfs
|
|||||||
|
|
||||||
# Bundle the vibeui pytorch model
|
# Bundle the vibeui pytorch model
|
||||||
RUN mkdir -p /app/dist/vibeui \
|
RUN mkdir -p /app/dist/vibeui \
|
||||||
&& wget -q https://gitea.futureporn.net/futureporn/fp/raw/branch/main/apps/vibeui/best.pt -O /app/dist/vibeui/vibeui.pt
|
&& wget -q https://gitea.futureporn.net/futureporn/fp/raw/branch/main/apps/vibeui/dist/vibeui.pt -O /app/vibeui/vibeui.pt \
|
||||||
|
&& wget -q https://gitea.futureporn.net/futureporn/fp/raw/branch/main/apps/vibeui/dist/data.yaml -O /app/vibeui/data.yaml
|
||||||
|
|
||||||
# Copy and install dependencies
|
# Copy and install dependencies
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
@ -139,7 +139,7 @@ export async function inference(videoFilePath: string): Promise<string> {
|
|||||||
|
|
||||||
// Generate a unique name based on video name + UUID
|
// Generate a unique name based on video name + UUID
|
||||||
const uniqueName = nanoid()
|
const uniqueName = nanoid()
|
||||||
const customProjectDir = 'runs' // or any custom folder
|
const customProjectDir = 'vibeui/runs' // or any custom folder
|
||||||
const outputPath = join(env.APP_DIR, customProjectDir, uniqueName)
|
const outputPath = join(env.APP_DIR, customProjectDir, uniqueName)
|
||||||
|
|
||||||
await spawn('./venv/bin/yolo', [
|
await spawn('./venv/bin/yolo', [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user